Skip to main content

Creating a Bot

This guide will walk you through the process of creating a new Telegram bot and connecting it to the Bot Builder.

Part 1: Creating a Telegram Bot with BotFather​

  1. Open Telegram and find BotFather: BotFather is the official Telegram bot that you use to create and manage other bots. Open your Telegram app and search for the user @BotFather (it should have a blue checkmark next to it).
  2. Start a chat with BotFather: Start a chat with BotFather and type /start.
  3. Create a new bot: Type /newbot and press enter.
  4. Choose a name and username: BotFather will ask you for a name for your bot. This is the display name that users will see. After you provide a name, it will ask for a username. The username must be unique and end in "bot" (e.g., MyTestBot).
  5. Get your bot token: If the username is available, BotFather will congratulate you and give you a "token". This token is a long string of characters and is very important. It's how our Bot Builder application will be able to control your bot. Keep this token safe and do not share it with anyone.

Part 2: Creating the Bot in the Bot Builder​

  1. Navigate to the Bots page: In the Bot Builder application, go to the "Bots" page from the main dashboard.
  2. Click "Create New Bot": You should see a "Create New Bot" button. Click it to open the new bot dialog.
  3. Enter your bot token: The dialog will ask for your "Bot Token". Copy the token you got from BotFather and paste it into this field.
  4. Click "Create Bot": Click the "Create Bot" button. The Bot Builder will verify your token and add your new bot to your account.

You can now select your new bot and start building its behaviour in the editor!