SmartbotPro
  • Smartbot Pro – messenger marketing tool
  • Most important
  • Mini-course
    • Registration and personal account
    • Initial scripting tools
    • Creating the first script
    • Users and collection of information
    • Applications, variables and managers
    • Data validation
    • Collection of applications for a webinar within Telegram
    • Testing unpublished scripts
    • Newsletters
    • Template "Test with a set of points"
    • Statistics
    • Interface hacks
  • Beginning of work
    • Registration in the service
    • More about scripts
    • How to add messenger
      • Adding Telegram
        • Adding a bot to a group chat in Telegram
      • Adding ВК
      • Adding Viber
      • Connecting a channel to a script
      • Linking a social network account
  • Scripts
    • Basics
      • Create a script
      • Script templates
      • Editor interface
      • Publishing a script
      • Script testing
      • How the script is chosen
    • Script events
      • Message from user
      • No appropriate script
      • First message
      • VK Events
      • Webhook
    • Actions
      • Send a message
        • Buttons
      • Process message
      • Extract data
      • Change context
      • Write to statistics
      • Send Notification
      • Switching to another script
      • Working with the user
      • Set variable
      • Scheduled transitions
      • Run SmartQuery
    • Conditions
      • Condition
      • Condition with options
      • Conditions of VKontakte
    • Variables
      • Special Variables
      • User variables
      • Global variables
      • Variable %ref%
    • Acceptance of payment
    • Telegram bot menu
    • Integrations
      • Google-таблицы
      • http request
      • amoCRM
      • Get Course
      • Yukassa for receiving payments
    • Reactions
  • Newsletters
  • Settings
    • Projects
    • Cabinets
  • Information sections
    • Statistics
    • Users
  • SmartQuery
    • Introduction
    • Language syntax
    • Function Reference
  • The documents
    • Privacy Policy
    • Terms of service
    • Subscription and rates
Powered by GitBook
On this page
  • How to add a menu
  • 1. Set up a channel
  • 2. Set up the script
  1. Scripts

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!

PreviousAcceptance of paymentNextIntegrations

Last updated 2 years ago

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

Here's how it looks in Telegram:

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.

Note that these commands have the highest priority. They will be executed even if the user was in another chain.

How to add a menu

1. Set up a channel

To create a command menu for a bot in Telegram:

  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.

The command format is fixed - /command. The slash is set by default, the command name can consist of lowercase Latin letters, numbers and _.

2. Set up the script

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:

If the user's message is /command (any command you want here).

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

It remains only to publish the changes, and your telegram users can easily navigate in the side menu of the bot 👌

Interface adding a menu for channels in Telegram
In this case, the /start command leads to a welcome and subsequent steps.