Skip to content

get_my_commands

Use this method to get the current list of the bot's commands.

Parameters

  • scope (BotCommandScope) (optional): The scope of users for which the commands are relevant. Defaults to BotCommandScopeDefault.
  • language_code (str) (optional): A two-letter ISO 639-1 language code. If empty, commands will be applied to all users from the given scope, for whose language there are no dedicated commands

Returns

List of BotCommand

Examples

  • All Parameters
await bot.get_my_commands(
    scope=your_scope_here,
    language_code=your_language_code_here
)