messages.getFavedStickers
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.getFavedStickers({
hash: 9781090,
}));
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.FavedStickers = await client.invoke(new Api.messages.getFavedStickers({
hash: 9781090,
}));
console.log(result); // prints the result
})();TL schema
messages.favedStickersNotModified#9e8fa6d3 = messages.FavedStickers;
messages.favedStickers#f37f2f16 hash:int packs:Vector<StickerPack> stickers:Vector<Document> = messages.FavedStickers;
---functions---
messages.getFavedStickers#21ce0b0e hash:int = messages.FavedStickers;Parameters
Result
Possible errors
Can bots use this methd ?
yes
Related pages
Last updated