search_stickers()

async Client.search_stickers()

Search for stickers from public sticker sets that match any of the given emoji.

Usable by Users Bots
Parameters:
  • sticker_type (StickerType) – Type of the stickers to return.

  • emojis (List of str) – List of emojis to search for.

  • query (str, optional) – Query to search for. May be empty to search by emoji only.

  • input_language_codes (List of str, optional) – List of possible IETF language tags of the user’s input language.

  • offset (int, optional) – The offset from which to return the stickers.

  • limit (int, optional) – Limits the number of stickers to be retrieved. By default, no limit is applied and all stickers are returned.

Returns:

Generator – A generator yielding Sticker objects.

Example

from wzgram import enums

async for sticker in app.search_stickers(enums.StickerType.REGULAR, ["👍"]):
    print(sticker)