messages.getAllStickers

Get all installed stickers

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.getAllStickers({
        hash: 4421436,
        }));
    console.log(result); // prints the result
})();

TL schema

messages.allStickersNotModified#e86602c3 = messages.AllStickers;
messages.allStickers#edfd405f hash:int sets:Vector<StickerSet> = messages.AllStickers;
---functions---
messages.getAllStickers#1c9618b1 hash:int = messages.AllStickers;

Parameters

Result

messages.AllStickers

Possible errors

Code

Type

Description

Can bots use this methd ?

yes

How to fetch results from large lists of objects.

Last updated