> For the complete documentation index, see [llms.txt](https://docs.smartbotpro.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.smartbotpro.io/scripts/telegram-bot-menu.md).

# Telegram bot menu

We tell you how to make a menu in Telegram chat with commands like /start /help for end-to-end navigation - quick access to the most popular functions of your bot!

Ready-made commands are useful in that they make life easier for the user, eliminating the need for manual typing.&#x20;

Here's how it looks in Telegram:

![](https://1932399487-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuRfd5lEYYH6D50QjzeAX%2Fuploads%2FCMZII9KQtU7gfalTTXlR%2F2.png?alt=media\&token=9f21a974-1442-40a1-883a-95a771cfb57b)

To use the menu, you need to click on the icon to the left of the message input field or write a slash / -- the bot will prompt the available commands.&#x20;

{% hint style="info" %}
Note that these commands have the highest priority. They will be executed even if the user was in another chain.
{% endhint %}

## How to add a menu

### 1. Set up a channel&#x20;

To create a command menu for a bot in Telegram:&#x20;

1. Go to the project settings on the "Channels" tab
2. Click on the desired Telegram channel
3. In the "Teams" section, click on the "Add team" button: enter the name of the team and its description.

![Interface adding a menu for channels in Telegram](https://1932399487-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuRfd5lEYYH6D50QjzeAX%2Fuploads%2FHvgYv7hkb31VS3BFo4fU%2F1.png?alt=media\&token=2a7e7f02-e829-45fa-a6f9-a0bba82528da)

{% hint style="info" %}
**The command format** is fixed - /command. The slash is set by default, the command name can consist of lowercase Latin letters, numbers and \_.
{% endhint %}

### 2. Set up the script&#x20;

Successfully?

Great, now you need to configure the behavior of the bot for each command. To do this, add commands to the script.

Go to the desired script or create a new one, add the "Message from user" block and write the condition:&#x20;

If the user's message **is** /`command` (any command you want here).&#x20;

We connect this block with the action that should be performed when this command is selected (for example, with the menu block).

![In this case, the /start command leads to a welcome and subsequent steps.](https://1932399487-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuRfd5lEYYH6D50QjzeAX%2Fuploads%2F1Y0m7Ba6uUOtE77xxf9Z%2F3.png?alt=media\&token=4c218be0-42db-40ad-bc54-d4db527e243e)

{% hint style="success" %}
It remains only to publish the changes, and your telegram users can easily navigate in the side menu of the bot 👌
{% endhint %}
