pub async fn set_commands(
scope: Option<BotCommandScope>,
language_code: String,
commands: Vec<BotCommand>,
client_id: i32,
) -> Result<(), Error>
Expand description
Sets the list of commands supported by the bot for the given user scope and language; for bots only
§Arguments
scope
- The scope to which the commands are relevant; pass null to change commands in the default bot command scopelanguage_code
- A two-letter ISO 639-1 language code. If empty, the commands will be applied to all users from the given scope, for which language there are no dedicated commandscommands
- List of the bot’s commandsclient_id
- The client id to send the request to