get_commands


Description:

public async BotCommands get_commands (BotCommandScope scope, string language_code) throws TDLibError

Returns the list of commands supported by the bot for the given user scope and language; for bots only

Parameters:

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