getForumTopicIconStickersПоддерживается
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 Sticker objects.
Особенности StaticGram
system set emoji_default_topic_icons as custom_emoji Stickers
Параметры
Метод не принимает параметров.
Пример запроса
curl
curl "https://api.staticgram.top/bot$TOKEN/getForumTopicIconStickers"aiogram 3
from aiogram import Bot
from aiogram.client.session.aiohttp import AiohttpSession
from aiogram.client.telegram import TelegramAPIServer
session = AiohttpSession(api=TelegramAPIServer.from_base("https://api.staticgram.top"))
bot = Bot(TOKEN, session=session)
result = await bot.get_forum_topic_icon_stickers()JavaScript
const res = await fetch(`https://api.staticgram.top/bot${TOKEN}/getForumTopicIconStickers`);
const data = await res.json();Ответ (Array of Sticker)
JSON
{
"ok": true,
"result": [
{
"file_id": "...",
"file_unique_id": "...",
"type": "private",
"width": 1,
"height": 1,
"is_animated": true,
"is_video": true
}
]
}