Skip to content

deleteCommands

Function · TDLib 1.8.67 · d1085f9c

Deletes commands supported by the bot for the given user scope and language; for bots only

deleteCommands(
  scope: BotCommandScope,
  language_code: string
) → Ok

scope

BotCommandScope

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

language_code

string

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