deleteMyCommands()
Use this method to delete the list of the bot's commands for the given scope and user language. After deletion, higher level commands will be shown to affected users. Returns True on success.
parameters
| parameter | type | required | description |
|---|---|---|---|
scope | BotCommandScope | optional | A JSON-serialized object, describing scope of users for which the commands are relevant. Defaults to BotCommandScopeDefault. |
language_code | string | optional | A two-letter ISO 639-1 language code. If empty, commands will be applied to all users from the given scope, for whose language there are no dedicated commands. |
returns
boolean
usage in yaebal
not (yet) hard-typed on Api — call it through the generic .call<T>() escape hatch documented in @yaebal/types.
import type { DeleteMyCommandsParams } from "@yaebal/types";
await bot.api.call<boolean>("deleteMyCommands", {} satisfies DeleteMyCommandsParams);official Bot API docs: https://core.telegram.org/bots/api/#deletemycommands