messages.receivedQueue
Confirms receipt of messages in a secret chat by client, cancels push notifications.
Example
const {Api, TelegramClient} = require('telegram');
const {StringSession} = require('telegram/sessions');
const session = new StringSession('');
const client = new TelegramClient(session, apiId, apiHash, {});
(async function run() {
const result = await client.invoke(new Api.messages.receivedQueue({
maxQts: 6568066,
}));
console.log(result); // prints the result
})();
TL schema
---functions---
messages.receivedQueue#55a5bb66 max_qts:int = Vector<long>;
Parameters
Name
Type
Description
Result
Method returns a list of random_ids of messages for which push notifications were cancelled in Vector[long](https://core.telegram.org/type/long).
Possible errors
Code
Type
Description
400
MSG_WAIT_FAILED
A waiting call returned an error
Can bots use this methd ?
yes
Related pages
Last updated
Was this helpful?