StaticGramBot API

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

A simple method for testing your bot's authentication token. Requires no parameters. Returns basic information about the bot in form of a User object.

Параметры

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

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

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

Ответ (User)

JSON
{
  "ok": true,
  "result": {
    "id": 1780243423,
    "is_bot": true,
    "first_name": "..."
  }
}

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