đ§ set_my_commands
Use this method to change the list of the bot's commands.
âī¸ Parameters
commands
(List of BotCommand ): List of BotCommand. At most 100 commands can be specified.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
bool
đ Examples
-đĒĢ Required Parameters
await bot.set_my_commands(
commands=your_commands_here
)
-đ All Parameters
await bot.set_my_commands(
commands=your_commands_here,
scope=your_scope_here,
language_code=your_language_code_here
)