Function get_commands

Source
pub async fn get_commands(
    scope: Option<BotCommandScope>,
    language_code: String,
    client_id: i32,
) -> Result<BotCommands, Error>
Expand description

Returns 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 get commands in the default bot command scope
  • language_code - A two-letter ISO 639-1 language code or an empty string
  • client_id - The client id to send the request to