Skip to content

Your first bot in 5 minutes

Video coming soon — step-by-step guide below

Create a bot, connect Telegram and build the first scenario: a greeting with buttons.

What you need

  • A MyCode.Bot panel account
  • A Telegram bot token from @BotFather

Steps

  1. Sign in to the panel and create a new bot.
  2. Add the messenger token (Telegram) in the bot settings.
  3. Open the scenario builder. The canvas already has the OnMemberFollow event: it fires on /start.
  4. From the components panel, Screens category, drag a Screen and connect the event output to its input.
  5. Add a greeting message and two buttons to the Screen, e.g. “About us” and “Contacts”.
  6. For each button add another Screen with the answer and connect the button output to it.
  7. Save and publish the scenario.
  8. Open the bot in Telegram, press /start and try the buttons.

Resulting scenario

OnMemberFollow -> Screen "Welcome!"
                    | Button "About us" -> Screen "About us"
                    | Button "Contacts" -> Screen "Contacts"

Learn more