setStickerEmojiList¶
Returns: bool
- class aiogram.methods.set_sticker_emoji_list.SetStickerEmojiList(*, sticker: str, emoji_list: List[str], **extra_data: Any)[source]¶
Use this method to change the list of emoji assigned to a regular or custom emoji sticker. The sticker must belong to a sticker set created by the bot. Returns
True
on success.Source: https://core.telegram.org/bots/api#setstickeremojilist
- sticker: str¶
File identifier of the sticker
- model_computed_fields: ClassVar[Dict[str, ComputedFieldInfo]] = {}¶
A dictionary of computed field names and their corresponding ComputedFieldInfo objects.
- model_post_init(context: Any, /) None ¶
We need to both initialize private attributes and call the user-defined model_post_init method.
- emoji_list: List[str]¶
A JSON-serialized list of 1-20 emoji associated with the sticker
Usage¶
As bot method¶
result: bool = await bot.set_sticker_emoji_list(...)
Method as object¶
Imports:
from aiogram.methods.set_sticker_emoji_list import SetStickerEmojiList
alias:
from aiogram.methods import SetStickerEmojiList
With specific bot¶
result: bool = await bot(SetStickerEmojiList(...))
As reply into Webhook in handler¶
return SetStickerEmojiList(...)