mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
* Added basic support of Bot API 6.6 * Update descriptions * Added StickerFormat enum * Bump version * Refresh from docs * Fixed CommandStart * Fixed files uploading * Cover new functionality * Added changelog * Update texts
28 lines
850 B
Python
28 lines
850 B
Python
from __future__ import annotations
|
|
|
|
from typing import TYPE_CHECKING, Any, Dict, List
|
|
|
|
from .base import Request, TelegramMethod
|
|
|
|
if TYPE_CHECKING:
|
|
from ..client.bot import Bot
|
|
|
|
|
|
class SetStickerEmojiList(TelegramMethod[bool]):
|
|
"""
|
|
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 :code:`True` on success.
|
|
|
|
Source: https://core.telegram.org/bots/api#setstickeremojilist
|
|
"""
|
|
|
|
__returning__ = bool
|
|
|
|
sticker: str
|
|
"""File identifier of the sticker"""
|
|
emoji_list: List[str]
|
|
"""A JSON-serialized list of 1-20 emoji associated with the sticker"""
|
|
|
|
def build_request(self, bot: Bot) -> Request:
|
|
data: Dict[str, Any] = self.dict()
|
|
|
|
return Request(method="setStickerEmojiList", data=data)
|