StaticGramBot API

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

Returns the list of gifts that can be sent by the bot to users and channel chats. Requires no parameters. Returns a Gifts object.

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

regular catalog gifts that are not sold out / auction-only

Параметры

Метод не принимает параметров.

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

curl
curl "https://api.staticgram.top/bot$TOKEN/getAvailableGifts"
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_available_gifts()
JavaScript
const res = await fetch(`https://api.staticgram.top/bot${TOKEN}/getAvailableGifts`);
const data = await res.json();

Ответ (Gifts)

JSON
{
  "ok": true,
  "result": {
    "gifts": []
  }
}

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