Telegram Bot Commands Generator
Build your bot's command menu in an editor that knows Telegram's rules. Copy it for BotFather, as a setMyCommands call in curl, Node.js or Python, or apply it to your bot in one click.
Your commands
Who sees them
The fallback list. Used wherever no narrower list is set.
Leave on the default unless you are adding a translated list.
Copy it
start - Start the bot
help - See what this bot can do
settings - Change your settingsBotFather: send /setcommands, pick your bot, then paste the BotFather tab as one message.
Or apply it to your bot now
From @BotFather. Used for this request only, sent straight from your browser to Telegram.
Your commands never leave this page. The token is used only when you press a button in step 4, and only to call api.telegram.org from your browser.
BotFather or setMyCommands: which to use
Both end up in the same place, the list Telegram stores for your bot. BotFather is the quick way when you have one list for everyone: send /setcommands, pick the bot, paste one command - description per line. It replaces the whole list each time, so always paste the full set.
setMyCommands is the Bot API method, and it is the only way to use scopes and languages. It also belongs in your deploy script: when the code that handles /refund ships, the menu entry for it ships in the same step, and the two never drift apart. The curl, Node.js and Python tabs are ready to drop into one.
Scopes: different menus for different people
A support bot in a customer group does not need to show /ban to every member. Scopes solve that. Set a short public list with the default scope, then a longer list with all group admins, and Telegram shows each person the right one.
- Telegram picks the narrowest match. A list for one member of one chat beats the list for that chat, which beats all groups, which beats the default.
- Each scope is a complete list. Lists do not merge. If admins should also see the public commands, include those in the admin list.
- Language is a second dimension. The same scope can hold one list per language code, plus one with no code as the fallback.
- Deleting a list reveals the next one. Remove the admin list and admins fall back to the group list, then the default.
Naming commands people will actually use
- One word where you can.
/ordersis typed and remembered;/view_my_recent_ordersis neither. - Put the most used first. The menu keeps your order, and most people only look at the top few.
- Descriptions are the real interface. Start with a verb and say the outcome: “Track an order”, not “Orders module”.
- Keep
/startand/help. Telegram's guidelines ask every bot to answer both, and users try them first. - Translate descriptions, not names. Command names must stay in lowercase English letters, so keep them stable and localise the text beside them.
When the menu is right but the bot stays silent
The menu and the bot's behaviour are separate. Telegram sends a tapped command to your bot as an ordinary message whose text is /command, or /command@yourbot in a group. If nothing answers, the fault is on the receiving side: check delivery with the Telegram webhook checker, and read why a Telegram bot stops responding for the nine usual causes. In groups, privacy mode decides which messages the bot receives at all; commands addressed to it always get through.
If you would rather not write the handlers, a Telegram chatbot built in Conferbot answers each command from a visual flow, and the Telegram templates are a starting point.
Frequently asked questions
How do I add commands to a Telegram bot?
There are two ways. In Telegram, open @BotFather, send /setcommands, choose your bot and send the list as one "command - description" per line. Or call the Bot API method setMyCommands with the same list as JSON. This generator produces both, and step 4 can make the API call for you from your browser.
What are the rules for a Telegram command name?
A command is 1 to 32 characters and may contain only lowercase English letters, digits and underscores. No spaces, no capitals, no hyphens and no leading slash in the list itself: Telegram adds the slash when it shows the command. The description is 1 to 256 characters and can be in any language.
How many commands can a bot have?
setMyCommands accepts at most 100 commands per list. In practice the menu shows a handful at a time, so most bots are easier to use with five to ten well-named commands and the rest reachable from /help. The generator counts them and stops you before Telegram does.
Why are my commands not showing in the menu?
The usual causes are: the list was set for a different scope or language than the one you are testing in; the Telegram app is still showing a cached menu, which reopening the chat fixes; or the request failed and nobody read the response. Use Load current commands in step 4 with the same scope and language to see exactly what Telegram has stored.
What is a command scope?
A scope decides who sees a list. A bot can keep one list for private chats, another for groups, another for group administrators, and even one for a single chat or a single member. Telegram shows the narrowest list that matches and falls back to the default list when none does.
Can commands be shown in different languages?
Yes. Send the list again with a two-letter language_code such as es or de. Users whose Telegram app is set to that language see the translated list; everyone else sees the list that was sent without a language code. Command names stay the same, only descriptions change.
Does setting commands make the bot respond to them?
No. The command list is only a menu. Your bot still has to receive each /command as a message and reply to it, in your own code or in a bot builder. A command that is in the menu but not handled simply gets no answer.
Is it safe to paste my bot token here?
The token is used only for the request you trigger, which goes directly from your browser to api.telegram.org. It is not sent to Conferbot, not logged and not stored, and it is gone when you close the page. If you would rather not paste it at all, copy the curl command and run it yourself.
Related
Build the bot behind the commands
A command menu only lists commands. Build a Telegram chatbot that answers each one, with AI replies and a handoff to your team. No code, free plan, no card.