messages.SearchStickers

class pyrogram.raw.functions.messages.SearchStickers

Search for stickers using AI-powered keyword search

Details:
  • Layer: 223

  • ID: 29B1C66A

Parameters:
  • q (str) – The search term

  • emoticon (str) – Space-separated list of emojis to search for

  • lang_code (List of str) – List of possible IETF language tags of the user’s input language; may be empty if unknown

  • offset (int 32-bit) – Offset for pagination

  • limit (int 32-bit) – Maximum number of results to return, see pagination

  • hash (int 64-bit) – Hash 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.

  • emojis (bool, optional) – If set, returns custom emoji stickers

Returns:

messages.FoundStickers

TL Schema

messages.searchStickers#29b1c66a
flags:#
emojis:flags.0?true
q:string
emoticon:string
lang_code:Vector<string>
offset:int
limit:int
hash:long

= messages.FoundStickers

Parameter Tree

SearchStickers
├── emojistrue (optional)
├── qstring
├── emoticonstring
├── lang_codeVector < string >
├── offsetint
├── limitint
└── hashlong

Example

await app.invoke(
    SearchStickers(
        emojis=None,
        q="text",
        emoticon="text",
        lang_code=["text"],
        offset=0,
        limit=0,
        hash=0,
    )
)