Skip to main content

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

NameTypeRequiredDescription
PushboolMust be set if the messages were received from a push notification.
PeerInputPeerClassyesThe peer where the messages were received.
ID[]intyesThe IDs of the received messages.

Returns

bool

Possible errors

CodeTypeDescription
400PEER_ID_INVALIDThe provided peer id is invalid.

References