getMyDefaultAdministratorRights()
Use this method to get the current default administrator rights of the bot. Returns ChatAdministratorRights on success.
parameters
| parameter | type | required | description |
|---|---|---|---|
for_channels | boolean | optional | 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. |
returns
usage in yaebal
getMyDefaultAdministratorRights is directly typed on Api — call it straight off bot.api.
import type { GetMyDefaultAdministratorRightsParams } from "@yaebal/types";
await bot.api.getMyDefaultAdministratorRights({} satisfies GetMyDefaultAdministratorRightsParams);official Bot API docs: https://core.telegram.org/bots/api/#getmydefaultadministratorrights