getMyDescription#

Returns: BotDescription

class aiogram.methods.get_my_description.GetMyDescription(*, language_code: str | None = None, **extra_data: Any)[source]#

Use this method to get the current bot description for the given user language. Returns aiogram.types.bot_description.BotDescription on success.

Source: https://core.telegram.org/bots/api#getmydescription

language_code: str | None#

A two-letter ISO 639-1 language code or an empty string

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

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

model_post_init(_ModelMetaclass__context: Any) None#

We need to both initialize private attributes and call the user-defined model_post_init method.

Usage#

As bot method#

result: BotDescription = await bot.get_my_description(...)

Method as object#

Imports:

  • from aiogram.methods.get_my_description import GetMyDescription

  • alias: from aiogram.methods import GetMyDescription

With specific bot#

result: BotDescription = await bot(GetMyDescription(...))