getMyDefaultAdministratorRightsПоддерживается
Use this method to get the current default administrator rights of the bot. Returns ChatAdministratorRights on success.
Параметры
Pass True to get default administrator rights of the bot in channels. Otherwise, default administrator rights of the bot for groups and supergroups will be returned.
Пример запроса
curl
curl "https://api.staticgram.top/bot$TOKEN/getMyDefaultAdministratorRights"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_default_administrator_rights()JavaScript
const res = await fetch(`https://api.staticgram.top/bot${TOKEN}/getMyDefaultAdministratorRights`);
const data = await res.json();Ответ (ChatAdministratorRights)
JSON
{
"ok": true,
"result": {
"is_anonymous": true,
"can_manage_chat": true,
"can_delete_messages": true,
"can_manage_video_chats": true,
"can_restrict_members": true,
"can_promote_members": true,
"can_change_info": true,
"can_invite_users": true,
"can_post_stories": true,
"can_edit_stories": true,
"can_delete_stories": true,
"can_send_welcome_messages": true
}
}