messages.searchStickerSets

Search for stickersets

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.searchStickerSets({
        excludeFeatured: true,
        q: 'random string here',
        hash: 5627127,
        }));
    console.log(result); // prints the result
})();

TL schema

messages.foundStickerSetsNotModified#d54b65d = messages.FoundStickerSets;
messages.foundStickerSets#5108d648 hash:int sets:Vector<StickerSetCovered> = messages.FoundStickerSets;
---functions---
messages.searchStickerSets#c2b7d08b flags:# exclude_featured:flags.0?true q:string hash:int = messages.FoundStickerSets;

Parameters

Name

Type

Description

flags

exclude_featured

Exclude featured stickersets from results

q

Query string

Result

messages.FoundStickerSets

Possible errors

Code

Type

Description

Can bots use this methd ?

yes

How to fetch results from large lists of objects.

Last updated