Link Search Menu Expand Document

Method: messages.searchStickers

Back to methods index

Search for stickers using AI-powered keyword search

Parameters:

NameTypeDescriptionRequired
emojisBoolIf set, returns custom emoji stickersOptional
qstringThe search termOptional
emoticonstringSpace-separated list of emojis to search forOptional
lang_codeArray of stringList of possible IETF language tags of the user’s input language; may be empty if unknownYes
offsetintOffset for paginationOptional
limitintMaximum number of results to return, see paginationOptional
hashArray of long|stringHash used for caching, for more info click here.
The hash may be generated locally by using the ids of the returned or stored sticker documents.
Optional

Return type: messages.FoundStickers

Can userbots use this method: YES

Can bots use this method: NO

MadelineProto Example (now async for huge speed and parallelism!):

if (!file_exists('madeline.php')) {
    copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php');
}
include 'madeline.php';

$MadelineProto = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start();

$messages_FoundStickers = $MadelineProto->messages->searchStickers(emojis: $Bool, q: 'string', emoticon: 'string', lang_code: ['string', 'string'], offset: $int, limit: $int, hash: [$long\|string, $long\|string], );