Create a Telegram bot using BotFather and Get the Api Token
- Open Telegram
2. Search @ botfather
3. Type /newbot .
4. It will show “Alright, a new bot. How are we going to call it? Please choose a name for your bot.”
5. Type the name of your bot.
6. After, it’ll show “Good. Now let’s choose a username for your bot. It must end in `bot`. Like this, for example: TetrisBot or tetris_bot.”
7. You’ve to give a unique username and it should be ending with bot.
8. After giving the name it’ll show :-
“Done! Congratulations on your new bot. You will find it at t.me/ShibinTest3bot. You can now add a description, about section and profile picture for your bot, see /help for a list of commands. By the way, when you’ve finished creating your cool bot, ping our Bot Support if you want a better username for it. Just make sure the bot is fully operational before you do this.
Use this token to access the HTTP API: “TOKEN”
For a description of the Bot API, see this page: https://core.telegram.org/bots/api
9.Copy the Api Token for further