messages.getArchivedStickers

Get all archived 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.getArchivedStickers({
        masks: true,
        offsetId: 4843149,
        limit: 9225670,
        }));
    console.log(result); // prints the result
})();

TL schema

messages.archivedStickers#4fcba9c8 count:int sets:Vector<StickerSetCovered> = messages.ArchivedStickers;
---functions---
messages.getArchivedStickers#57f17692 flags:# masks:flags.0?true offset_id:long limit:int = messages.ArchivedStickers;

Parameters

Name

Type

Description

flags

masks

Get mask stickers

offset_id

limit

Maximum number of results to return, see pagination

Result

messages.ArchivedStickers

Possible errors

Code

Type

Description

Can bots use this methd ?

yes

How to fetch results from large lists of objects.

Last updated