To obtain the bot token for your Telegram bot, you need to create a new bot by talking to the BotFather on Telegram. Here are the steps to get the token:
- Open the Telegram app on your device or visit the Telegram web client at https://web.telegram.org/.
- Search for “BotFather” in the Telegram search bar.
- Open the BotFather chat and start a conversation.
- Type “/newbot” to create a new bot.
- Follow the instructions provided by the BotFather. You will be asked to provide a name for your bot (e.g., “MyTestBot”) and a username (e.g., “@MyTestBot”).
- Once you have provided a name and username, the BotFather will generate a bot token for you.
- The BotFather will display the bot token in the format
1234567890:ABCdefGHIjklMNOpqrSTUvwxYZ1234567890
. This token is unique to your bot and will be used to authenticate your bot when making API requests.
Thats All.
Read More
1 thought on “How To Create Telegram Bot and get bot token”
Comments are closed.