peyk.platforms.telegram.methods.set_my_name

async peyk.platforms.telegram.methods.set_my_name(self, *, name: str | None = None, language_code: str | None = None) bool

Use this method to change the bot’s name. Returns True on success.

Parameters:
  • name – New bot name; 0-64 characters. Pass an empty string to remove the dedicated name for the given language.

  • language_code – A two-letter ISO 639-1 language code. If empty, the name will be shown to all users for whose language there is no dedicated name.

Returns:

Result returned by Telegram on successful execution.

Return type:

bool