Returns: bool

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

Use this method to change the bot’s description, which is shown in the chat with the bot if the chat is empty. Returns True on success.


description: str | None#

New bot description; 0-512 characters. Pass an empty string to remove the dedicated description for the given language.

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.

language_code: str | None#

A two-letter ISO 639-1 language code. If empty, the description will be applied to all users for whose language there is no dedicated description.


As bot method#

result: bool = await bot.set_my_description(...)

Method as object#


  • from aiogram.methods.set_my_description import SetMyDescription

  • alias: from aiogram.methods import SetMyDescription

With specific bot#

result: bool = await bot(SetMyDescription(...))

As reply into Webhook in handler#

return SetMyDescription(...)