Interface GetCommands

Returns the list of commands supported by the bot for the given user scope and language; for bots only. Request type for Tdjson#getCommands.

interface GetCommands {
    @type: "getCommands";
    language_code: string;
    scope: BotCommandScope;
}

Properties

@type: "getCommands"
language_code: string

A two-letter ISO 639-1 language code or an empty string.

The scope to which the commands are relevant; pass null to get commands in the default bot command scope.