messages.getStickers

Get stickers by emoji

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.getStickers({
        emoticon: 'random string here',
        hash: 6740859,
        }));
    console.log(result); // prints the result
})();

TL schema

messages.stickersNotModified#f1749a22 = messages.Stickers;
messages.stickers#e4599bbd hash:int stickers:Vector<Document> = messages.Stickers;
---functions---
messages.getStickers#43d4f2c emoticon:string hash:int = messages.Stickers;

Parameters

Name

Type

Description

emoticon

The emoji

hash

Result

messages.Stickers

Possible errors

Code

Type

Description

Can bots use this methd ?

yes

How to fetch results from large lists of objects.

Last updated