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
Параметры
Пример запроса
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": []
}
}