messages.receivedQueue
Confirms receipt of messages in a secret chat by client, cancels push notifications. The method returns a list of random_ids of messages for which push notifications were cancelled.
func (c *Client) MessagesReceivedQueue(ctx context.Context, maxqts int) ([]int64, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.MessagesReceivedQueue(ctx, maxqts)
if err != nil {
return err
}
_ = res // []int64
return nil
})
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
MaxQts | int | yes | Maximum qts value available at the client |
Returns
[]int64
Possible errors
| Code | Type | Description |
|---|---|---|
| 400 | MAX_QTS_INVALID | The specified max_qts is invalid. |
| 500 | MSG_WAIT_FAILED | A waiting call returned an error. |
References
- Official documentation
- Generated Go reference
- TL definition:
messages.receivedQueue#55a5bb66