setStickerEmojiListПоддерживается
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.
Параметры
File identifier of the sticker
A JSON-serialized list of 1-20 emoji associated with the sticker
Пример запроса
curl
curl "https://api.staticgram.top/bot$TOKEN/setStickerEmojiList" \
-H "Content-Type: application/json" \
-d '{
"sticker": "CAACAgIAAxkBAA...",
"emoji_list": []
}'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.set_sticker_emoji_list(sticker="CAACAgIAAxkBAA...", emoji_list=[])JavaScript
const res = await fetch(`https://api.staticgram.top/bot${TOKEN}/setStickerEmojiList`, {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
"sticker": "CAACAgIAAxkBAA...",
"emoji_list": []
}),
});
const data = await res.json();Ответ (True)
JSON
{
"ok": true,
"result": true
}