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
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.
Related methods
deleteBusinessMessages · deleteChatPhoto · deleteChatStickerSet · deleteForumTopic · deleteMessage · deleteMessages · deleteStickerFromSet · deleteStickerSet · deleteStory · deleteWebhook