StaticGramBot API

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

Use this method to get a sticker set. On success, a StickerSet object is returned.

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

Sticker: type/custom_emoji_id/needs_repainting/mask_position/set_name, StickerSet.thumbnail; no premium_animation

Параметры

nameStringобязательный
Name of the sticker set

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

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

Ответ (StickerSet)

JSON
{
  "ok": true,
  "result": {
    "name": "...",
    "title": "...",
    "sticker_type": "...",
    "stickers": []
  }
}

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