getMyNameПоддерживается
Use this method to get the current bot name for the given user language. Returns BotName on success.
Параметры
A two-letter ISO 639-1 language code or an empty string
Пример запроса
curl
curl "https://api.staticgram.top/bot$TOKEN/getMyName"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_my_name()JavaScript
const res = await fetch(`https://api.staticgram.top/bot${TOKEN}/getMyName`);
const data = await res.json();Ответ (BotName)
JSON
{
"ok": true,
"result": {
"name": "..."
}
}