Returns: ChatAdministratorRights

class aiogram.methods.get_my_default_administrator_rights.GetMyDefaultAdministratorRights(*, for_channels: bool | None = None, **extra_data: Any)[source]#

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


for_channels: bool | None#

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.

model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}#

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.


As bot method#

result: ChatAdministratorRights = await bot.get_my_default_administrator_rights(...)

Method as object#


  • from aiogram.methods.get_my_default_administrator_rights import GetMyDefaultAdministratorRights

  • alias: from aiogram.methods import GetMyDefaultAdministratorRights

With specific bot#

result: ChatAdministratorRights = await bot(GetMyDefaultAdministratorRights(...))