Configure Your Telegram Bot

Before deploying the product on Telegram, we need to create a bot from Telegram by using a bot called BotFather.

Step 1: Sign in to Telegram Messenger

  1. Navigate to Telegram messenger.

  2. Sign in to Telegram app using your credentials.

Step 2: Create a New Bot

  1. If you did not have an existing bot, search for the BotFather Telegram bot in your Telegram messenger app and choose the first bot.

  1. Select the BotFather bot and click on the START button on the top right corner to start the BotFather bot. You will see a list of commands that you can use to interact with BotFather bot.

  1. Click on the /newbot command to create a new bot. You will use this new bot to deploy and control your web app withing the Telegram's environment.

Step 3: Configure Your Bot

  1. After clicking on the /newbot command, A message will be prompted by BotFather bot, asking you a name for your bot.

  2. Choose a username of your choice to move forward.

  1. After choosing a name of your bot, you will get another message by BotFather, asking you for the username of your bot. The bot's username is a unique identifier that distinguishes it on the platform and must end with Bot.

  2. Choose a username for your bot of your choice.

Keep in mind that the username of the bot should be unique, must end with the word "Bot", can be 5-32 characters long, and may contain letters, numbers, and underscores (_).

Step 4: Get the Access Token of Your Bot

  1. After choosing a valid username of your bot, you will get a message by BotFather. This message is a confirmation that your bot is created successfully and contains the access token of your bot.

NOTE -

In Telegram bots, an access token is a unique key provided by BotFather when you create a bot. This token is essential for authenticating your bot and interacting with the Telegram Bot API. This token allows you to integrate the bot with your app or service.

  1. This access token will be required to deploy and control your web application using this bot in Telegram's environment. Keep this access token safe with you, it can be used by anyone to control your bot..

Last updated