Method: messages.searchStickers
Search for stickers using AI-powered keyword search
Parameters:
Name | Type | Description | Required |
---|---|---|---|
emojis | Bool | If set, returns custom emoji stickers | Optional |
q | string | The search term | Optional |
emoticon | string | Space-separated list of emojis to search for | Optional |
lang_code | Array of string | List of possible IETF language tags of the user’s input language; may be empty if unknown | Yes |
offset | int | Offset for pagination | Optional |
limit | int | Maximum number of results to return, see pagination | Optional |
hash | Array of long|string | Hash used for caching, for more info click here. The hash may be generated locally by using the id s 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], );