StaticGramBot API

getCustomEmojiStickersПоддерживается

Use this method to get information about custom emoji stickers by their identifiers. Returns an Array of Sticker objects.

Особенности StaticGram

unknown / non-emoji ids skipped like api.telegram.org

Параметры

custom_emoji_idsArray of Stringобязательный
A JSON-serialized list of custom emoji identifiers. At most 200 custom emoji identifiers can be specified.

Пример запроса

curl
curl "https://api.staticgram.top/bot$TOKEN/getCustomEmojiStickers" \
  -H "Content-Type: application/json" \
  -d '{
    "custom_emoji_ids": []
  }'
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_custom_emoji_stickers(custom_emoji_ids=[])
JavaScript
const res = await fetch(`https://api.staticgram.top/bot${TOKEN}/getCustomEmojiStickers`, {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "custom_emoji_ids": []
  }),
});
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
    }
  ]
}

Описания методов и типов взяты из официальной документации Telegram Bot API (Bot API 10.3). Адрес API: https://api.staticgram.top