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.
Особенности StaticGram
bot-only booleans incl. supports_join_request_queries, supports_guest_queries, has_topics_enabled, allows_users_to_create_topics, can_manage_bots (@BotFather settings → «Управление ботами», off by default; MTProto user.bot_can_manage_bots)
Параметры
Метод не принимает параметров.
Пример запроса
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": "..."
}
}