Here is a fast step-by-step information to create a Telegram bot, get its API token, and acquire 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 begin creating your new bot
- Observe BotFather’s prompts:
– Enter a bot title (show title).
– Enter a username that ends with bot (e.g., MyTradingAlerts_bot). - BotFather will reply along with your Bot API Token (appears to be like like 123456789:ABCdefGhIJK… )
- Copy and maintain the token above protected
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 appears to be like like 2012234567
Word: There are numerous different bots that may provide the Telegram Chat ID. You possibly can search and use any bot that you just like.
III – Notes / ideas
- 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 bunch, 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 begin receiving alert messages. Bear 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.