Telegram bot commands: how to set the menu and scopes
What a bot command is, the three every bot should support, and how to fill the menu: BotFather, setMyCommands, the seven scopes, languages and groups.
Launching a channel? Start with a bot
Connect a botTL;DR. A command is a
/keywordof up to 32 characters. Telegram asks every bot to support/start,/helpand — if the bot has settings —/settings. To show commands in the menu, send/setcommandsto @BotFather or callsetMyCommands: at most 100 commands per list, lowercase only, a description for each. Scopes give different lists to private chats, groups and administrators — but they only control what is shown, not who may run a command.
Commands are the oldest interface a Telegram bot has, and still the one people try first: they type a slash and look at what comes up. What comes up is a list you publish separately from the code that handles it — which is why a bot can answer /help perfectly and still show an empty menu.
What counts as a command
Telegram’s definition is short: a command is a simple /keyword that tells the bot what to do. It must start with the / symbol and contain up to 32 characters — Latin letters, numbers and underscores, with plain lowercase text recommended.
The apps treat commands specially. They are highlighted in messages, and tapping a highlighted command sends it again at once. When a person types / in a chat with a bot, Telegram suggests the bot’s list of commands with their descriptions.
The three commands every bot is asked to support
Telegram asks all developers to support a few basic commands, so that people know what to expect from any bot:
/start— begins the interaction with the user./help— returns a help message./settings— shows the bot’s settings for this user, if the bot has any.
If you add Help and Settings in @BotFather, links to them also appear in the menu on the bot’s profile page.
Put the commands in the menu
Handling a command in code does not make it appear anywhere. The list people see is set separately, in one of two ways.
Through @BotFather. Send /setcommands, choose the bot, and reply with the list as BotFather’s prompt asks: one command per line, then a dash and a description.
To draft that list and check it against the limits before you paste it — and to get the same commands as JSON for the API — use the BotFather commands generator.
Through the Bot API. Call setMyCommands with the bot’s token:
curl "https://api.telegram.org/bot<TOKEN>/setMyCommands" \
-H "Content-Type: application/json" \
-d '{"commands":[
{"command":"start","description":"Start the bot"},
{"command":"help","description":"What this bot can do"}
]}'
The limits are in the method’s documentation:
- at most 100 commands in one list;
- a command name of 1–32 characters: lowercase English letters, digits and underscores only — stricter than what a person may type;
- a description of 1–256 characters.
getMyCommands returns the current list — an empty one if nothing is set — and deleteMyCommands removes it.
Scopes: who sees which list
A bot can publish more than one list. Each call to setMyCommands can name a scope — the set of chats or people the list is for:
| Scope | Who sees the list |
|---|---|
| Default | Everyone, when no narrower list is set |
| All private chats | People talking to the bot one-on-one |
| All group chats | Members of every group and supergroup the bot is in |
| All chat administrators | Administrators of every group and supergroup |
| Chat | Everyone in one particular chat |
| Chat administrators | Administrators of one particular group |
| Chat member | One particular member of one particular group |
Telegram shows a person the first list that exists, checking from the narrowest scope outwards. In a private chat the order is: that chat, all private chats, default. In a group: that member, that group’s administrators, that group, all chat administrators, all group chats, default.
One thing a scope does not do is protect a command. It decides what is shown; anyone can still type the command by hand, and the message your bot receives does not say which scope the person saw. Telegram’s documentation is explicit that the backend should always verify that a received command is valid and that the user was authorized to use it.
Commands in several languages
setMyCommands also takes a language code. A list set with a language is shown to people whose Telegram is in that language; a list set without one is for everyone in the scope whose language has no dedicated list. At each step of the scope order Telegram looks for a list in the person’s language first, then for one without a language.
The menu button
In a private chat with a bot, the button next to the message field opens the command list by default. setChatMenuButton changes that: the button can keep opening commands, or launch a Mini App instead.
Commands in groups
In a group, what a bot receives depends on privacy mode. With privacy mode on, the bot gets commands explicitly meant for it — written as /command@this_bot — and general commands such as /start only if it was the last bot to send a message to the group. A bot that is an administrator of the group always receives all messages. Privacy mode and the other limits that look like bugs are covered in adding a bot to a group.
Three mistakes that cost an evening
- Uppercase in the list. A person may type
/Help, butsetMyCommandsaccepts only lowercase names. - Treating a scope as access control. Hiding
/banfrom ordinary members does not stop them from sending it. - Setting the list and expecting the bot to answer. The menu is a list of names. Each command still needs a handler in your code.
If the bot only has to run a channel
A command menu is worth the effort for a bot people talk to. A bot that publishes posts, takes orders or keeps a channel’s comments clean rarely needs one.
AdminHub works with a bot of that second kind: you connect your own bot, and the service does the publishing, the selling and the moderation through it. AdminHub does not set a command menu for the bot; if you want one, you add it yourself as described above. What it adds on the conversation side is keyword auto-replies in the channel’s discussion group: a rule can match text anywhere in a message, the whole message, its beginning or a regular expression, and the bot answers.
If you do not have a bot yet, how to create a Telegram bot walks through it from the first message to @BotFather.
Sources, checked November 2026: Telegram Bot Features — commands, the global commands, the menu button, privacy mode, BotFather’s /setcommands; Telegram Bot API (version 10.4) — setMyCommands, getMyCommands, deleteMyCommands, BotCommand, BotCommandScope and the order in which scopes are resolved, setChatMenuButton. The format of the list is the one @BotFather’s own prompt asks for.
What people usually ask
- What is a Telegram bot command?
- A keyword that starts with a slash and tells the bot what to do, such as /start. A command contains up to 32 characters: Latin letters, numbers and underscores. For the command menu the Bot API is stricter and accepts only lowercase English letters, digits and underscores.
- How do I add commands to my bot's menu?
- Either send /setcommands to @BotFather and reply with the list, or call the Bot API method setMyCommands with your bot's token. One list can hold at most 100 commands, and each needs a description of 1 to 256 characters.
- Which commands should every Telegram bot have?
- Telegram asks all developers to support three: /start, which begins the interaction with the user; /help, which returns a help message; and /settings, which shows the bot's settings for that user, if the bot has any.
- Why do different users see different commands in the same bot?
- Because a bot can keep separate command lists for different scopes — private chats, groups, group administrators, one particular chat, one particular member — and for different languages. Telegram shows each person the narrowest list that applies to them.
- Why does my bot not react to commands in a group?
- Usually because of privacy mode. With it on, a bot in a group receives commands explicitly meant for it, such as /command@this_bot, and general commands like /start only if it was the last bot to send a message to the group. A bot that is an administrator of the group receives all messages.
- Can I restrict a command by hiding it from the menu?
- No. A scope decides who sees the command in the menu, not who is able to send it — anyone can type it by hand. Telegram's documentation asks that your backend always verify that the user is authorized to use the command it received.