Skip to content

getCommands

Function · TDLib 1.8.67 · d1085f9c

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

getCommands(
  scope: BotCommandScope,
  language_code: string
) → BotCommands

scope

BotCommandScope

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

language_code

string

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