StaticGramBot API

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

Returns the bot's Telegram Star transactions in chronological order. On success, returns a StarTransactions object.

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

bot ledger newest first; invoice/paid media charges as TransactionPartnerUser, other rows user/chat/other

Параметры

offsetIntegerнеобязательный
Number of transactions to skip in the response
limitIntegerнеобязательный
The maximum number of transactions to be retrieved. Values between 1-100 are accepted. Defaults to 100.

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

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

Ответ (StarTransactions)

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

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