set_bot_info_description()#
- Client.set_bot_info_description()[source]#
Use this method to change the bot’s description, which is shown in the chat with the bot if the chat is empty.
Usable by ✅ Users ✅ BotsNote
If the current account is an User, can be called only if the
for_my_bothascan_be_editedproperty set to True.- Parameters:
description (
str) – New bot description; 0-512 characters. Pass an empty string to remove the dedicated description for the given language.language_code (
str, optional) – A two-letter ISO 639-1 language code or an empty stringfor_my_bot (
int|str, optional) – Unique identifier (int) or username (str) of the bot for which profile photo has to be updated instead of the current user. The bot should havecan_be_editedproperty set to True.
- Returns:
bool– True on success.- Raises:
RPCError – In case of a Telegram RPC error.
Example
await app.set_bot_info_description("")