Skip to content

deleteMyCommands

Returns boolean

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.

Optional: 2 parameters

Try it
Token saved
Response

TypeScript example · @effect-ak/tg-bot-client
import { makeTgBotClient } from "@effect-ak/tg-bot-client"
const client = makeTgBotClient({ bot_token: "YOUR_BOT_TOKEN" })
const result = await client.execute("delete_my_commands")

Parameters

scope BotCommandScope
A JSON-serialized object, describing scope of users for which the commands are relevant. Defaults to BotCommandScopeDefault.

language_code string
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.

deleteBusinessMessages · deleteChatPhoto · deleteChatStickerSet · deleteForumTopic · deleteMessage · deleteMessages · deleteStickerFromSet · deleteStickerSet · deleteStory · deleteWebhook