messages.getMessageReactionsList

Get full message reaction list

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.getMessageReactionsList({
        peer: new Api.InputPeer({...}),
        id: 3694644,
        reaction: 'random string here',
        offset: 'random string here',
        limit: 3992090,
        }));
    console.log(result); // prints the result
})();

TL schema

Method schema is available as of layer 129. Switch »

Parameters

Name

Type

Description

flags

peer

Peer

id

Message ID

reaction

Get only reactions of this type (UTF8 emoji)

offset

Offset (typically taken from the next_offset field of the returned MessageReactionsList)

limit

Maximum number of results to return, see pagination

Result

MessageReactionsList

Possible errors

Code

Type

Description

Can bots use this methd ?

yes

List of message reactions

How to fetch results from large lists of objects.

Last updated