messages.getRecentStickers
Get recent 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.getRecentStickers({
        attached: true,
        hash: 758564,
        }));
    console.log(result); // prints the result
})();import {Api, TelegramClient} from 'telegram';
import {StringSession} from 'telegram/sessions';
const session = new StringSession('');
const client = new TelegramClient(session, apiId, apiHash, {});
(async function run() {
    const result: Api.messages.RecentStickers = await client.invoke(new Api.messages.getRecentStickers({
        attached: true,
        hash: 758564,
        }));
    console.log(result); // prints the result
})();TL schema
messages.recentStickersNotModified#b17f890 = messages.RecentStickers;
messages.recentStickers#22f3afb3 hash:int packs:Vector<StickerPack> stickers:Vector<Document> dates:Vector<int> = messages.RecentStickers;
---functions---
messages.getRecentStickers#5ea192c9 flags:# attached:flags.0?true hash:int = messages.RecentStickers;Parameters
Name
Type
Description
Result
Possible errors
Code
Type
Description
Can bots use this methd ?
yes
Related pages
How to fetch results from large lists of objects.
Last updated
Was this helpful?