Telegram bots: How do you remove a command with botFather
Asked Answered
C

4

14

I am trying to erase all commands from my bot using botFather. I couldn't find docs for this. There is an option to send a new list of commands to the BotFather, however this does not help me as my bot doesn't have any commands as I am working with the custom keyboard.

Any idea how to do this?

Chum answered 17/9, 2015 at 19:56 Comment(0)
D
18

Just add a new list of commands with /setcommands.

your old list will be overwritten.

Dickman answered 9/2, 2016 at 13:30 Comment(2)
I accepted the answer although I couldn't erase all commands as mentionedChum
@Chum then just use /emptyAccustomed
K
4

There is no direct functionality like "Delete command". You just have to Overide commands again. It like this. Lets assume you have command set like below

  • /love - Love is eternal
  • /partner - return partner
  • /status - return relationship status

Let say you need to remove command /status from your bot. First you need to go to @BotFather get your list of bots using /mybots select your bot, then select Edit bot next Edit Commands. Now you will prompt to add new set of commands. Then Give command list without the one you need to remove. Like below

love - Love is eternal
partner - return partner

Then BotFather will add new command set in to you new bot. Don't worry if you can't see your new Command set at once. They will add after like 10 mins

Kremer answered 19/8, 2017 at 15:13 Comment(0)
S
3

As on today, you can send command /empty to delete all the commands in Edit Commands menu.

Submissive answered 17/4, 2020 at 9:23 Comment(0)
P
0

BotFather just maintains a list of commands you provide.

You can do a new /setcommands with it, but you can't actually alter the functionality of your bot from there.

Pyridine answered 19/9, 2015 at 14:17 Comment(3)
So if I added a command which is no longer need. Is there something I can do?Chum
But I don't want the bot to have any commands. I am working with the custom keyboard.Chum
Hmm, I thought I had blanked my commands list before, but I can't find a way to do it now. Perhaps this is a Telegram limitation, but I'll try and see if there is a way around it. For now, I'd suggest just making a command that explains there are no commands.Pyridine

© 2022 - 2024 — McMap. All rights reserved.