This is a fast step-by-step information to create a Telegram bot, get its API token, and procure your chat ID.
I – Create the bot with BotFather to have your individual Bot Token
- Open the Telegram app (cellular or desktop).
- Seek for BotFather and begin a chat.
- Ship: “/newbot” command (with out quotes) to start out creating your new bot
- Observe BotFather’s prompts:
– Enter a bot identify (show identify).
– Enter a username that ends with bot (e.g., MyTradingAlerts_bot). - BotFather will reply along with your Bot API Token (seems like 123456789:ABCdefGhIJK… )
- Copy and hold the token above secure
II – Get your Chat ID (private, group or channel)
- Open the Telegram app (cellular or desktop).
- Seek for @userinfobot and begin a chat.
- Copy the Id in reply message. It seems like 2012234567
Observe: There are a lot of different bots that may provide the Telegram Chat ID. You may search and use any bot that you simply like.
III – Notes / suggestions
- Add bot to a channel: To obtain messages in a channel, add the bot you created above as an admin and provides it posting rights.
- Teams & privateness: If the bot ought to see all messages in a gaggle, use /setprivacy in BotFather to disable privateness for the bot.
- Preserve the token secret — if it’s leaked, regenerate it in BotFather ( /token or /revoke ) and replace your Alerts Supervisor settings.
Copy the Bot API token above to Bot Key subject and the Chat ID above to Chat Id subject to start out receiving alert messages. Keep in mind so as to add the bot as an Admin in case your intend to obtain alert messages in a non-public Group or Channel.