Layer 224
MessagesSearchStickers
Search for stickers using AI-powered keyword search
method
Users
messages.searchStickers#29b1c66a flags:# emojis:flags.0?true q:string emoticon:string lang_code:Vector<string> offset:int limit:int hash:long = messages.FoundStickers;
Parameters
| Name | Type | Description |
|---|---|---|
| Emojis | flags.0?true | If set, returns custom emoji stickers |
| Q | string | The search term |
| Emoticon | string | Space-separated list of emojis to search for |
| LangCode | Vector<string> | List of possible IETF language tags of the user's input language; may be empty if unknown |
| Offset | int | Offset for pagination |
| Limit | int | Maximum number of results to return, see pagination |
| Hash | long | 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 document s. |
Returns
messages.FoundStickersGogram Example
// MessagesSearchStickers - using Params struct result, err := client.MessagesSearchStickers(&tg.MessagesSearchStickersParams{ Q: "Hello, World!", Emoticon: "Hello, World!", LangCode: "Hello, World!", Offset: 42, Limit: 42, Hash: int64(1234567890), // Optional fields: // Emojis: true, }) if err != nil { // handle error } // result is *tg.MessagesFoundStickers