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

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

Can bots use this methd ?

yes

Last updated