Available methods

getMyDefaultAdministratorRights()

Use this method to get the current default administrator rights of the bot. Returns ChatAdministratorRights on success.

parameters

parametertyperequireddescription
for_channelsbooleanoptionalPass 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

ChatAdministratorRights

usage in yaebal

not (yet) hard-typed on Api — call it through the generic .call<T>() escape hatch documented in @yaebal/types.

bot.ts
import type { ChatAdministratorRights, GetMyDefaultAdministratorRightsParams } from "@yaebal/types";

await bot.api.call<ChatAdministratorRights>("getMyDefaultAdministratorRights", {} satisfies GetMyDefaultAdministratorRightsParams);