StaticGramBot API

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

Use this method to change the bot's short description, which is shown on the bot's profile page and is sent together with the link when users share the bot. Returns True on success.

Параметры

short_descriptionStringнеобязательный
New short description for the bot; 0-120 characters. Pass an empty string to remove the dedicated short description for the given language.
language_codeStringнеобязательный
A two-letter ISO 639-1 language code. If empty, the short description will be applied to all users for whose language there is no dedicated short description.

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

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

Ответ (True)

JSON
{
  "ok": true,
  "result": true
}

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