Publish Your Bot on Telegram

Prev Next

This guide aims to explain how to publish your bot on Telegram. After fulfilling the prerequisites, you can set up your bot on Telegram. 

Prerequisites

  1. Create a bot using "@botfather" on Telegram.
  2. After creating the bot via Botfather, take note of the bot username, bot name, and bot token.
  3. To create a bot using Botfather, search for the handle "@botfather" on Telegram.
  4. Use the "/newbot" command in chat (you can text "botfather /newbot") and provide the required details until you receive the bot token.
  5. Note the bot token, bot username, and bot name.
  6. Go to Telegram and log in to your Telegram account with your phone number and the code that Telegram sent to you. 
  7. You will access your chat page. 
  8. Type "BotFather" in the search bar at the top of the left side. You should click the verified BotFather account with the blue checkmark.
  9. Type "/start" and send this command. Then, you will see all commands for some actions within Telegram. 
  10. To create a bot, send the command "/newbot".
  11. After that, Telegram will ask you to set a bot name and a user name for your bot. 
  12. Once you complete these steps, Telegram will send a token to access the HTTP API. Copy and paste it to the token field in the MindBehind popup.

Set up your bot

  1.  Go to the MindBehind platform.
  2. Select “Companies” from the left menu and choose the company that you have created and want to assign the bot to. 
  3. Click on the Channels tab and click the Connect button for Telegram.
  4. After clicking the Connect button, you will see the following screen.
  5. Click the Configurations tab. Add the bot name, bot username, and bot token that you noted earlier in Step 3 of the prerequisites.
  6. Click the Connect button after filling in all the fields. 
  7. After creating the channel, go to the Assistant from the company window (refer to step 3), and if you do not have an assistant, create one and open the assistant.
  8. Click the Publish button on the top right of the screen.
  9. In the Channels tab, you can see the pages that you have added.
  10. Click the Deployments tab and click the Add Deployment button.
  11. Select your channel.
  12. Select the "Assistant Version" and click the “Publish” button.

Congratulations! Your assistant is running on your Telegram bot.