mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
* Added API changes * Added changelog * Oops. Move changelog * Update tests * Remove experimental * Added message content type * Update message aliases * Update changes * Update texts * Bump version * Remove versionadded badge
24 lines
760 B
Python
24 lines
760 B
Python
from __future__ import annotations
|
|
|
|
from typing import TYPE_CHECKING, Any, Dict, List
|
|
|
|
from ..types import Sticker
|
|
from .base import Request, TelegramMethod
|
|
|
|
if TYPE_CHECKING:
|
|
from ..client.bot import Bot
|
|
|
|
|
|
class GetForumTopicIconStickers(TelegramMethod[List[Sticker]]):
|
|
"""
|
|
Use this method to get custom emoji stickers, which can be used as a forum topic icon by any user. Requires no parameters. Returns an Array of :class:`aiogram.types.sticker.Sticker` objects.
|
|
|
|
Source: https://core.telegram.org/bots/api#getforumtopiciconstickers
|
|
"""
|
|
|
|
__returning__ = List[Sticker]
|
|
|
|
def build_request(self, bot: Bot) -> Request:
|
|
data: Dict[str, Any] = self.dict()
|
|
|
|
return Request(method="getForumTopicIconStickers", data=data)
|