messages.reportMessagesDelivery
Used for Telegram Gateway verification messages »: indicate to the server that one or more messages were received by the client, if requested by the message report_delivery_until_date flag or the equivalent flag in push notifications.
func (c *Client) MessagesReportMessagesDelivery(ctx context.Context, request *MessagesReportMessagesDeliveryRequest) (bool, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.MessagesReportMessagesDelivery(ctx, &tg.MessagesReportMessagesDeliveryRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // bool
return nil
})
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
Push | bool | — | Must be set if the messages were received from a push notification. |
Peer | InputPeerClass | yes | The peer where the messages were received. |
ID | []int | yes | The IDs of the received messages. |
Returns
bool
Possible errors
| Code | Type | Description |
|---|---|---|
| 400 | PEER_ID_INVALID | The provided peer id is invalid. |
References
- Official documentation
- Generated Go reference
- TL definition:
messages.reportMessagesDelivery#5a6d7395