This 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 (cell or desktop). Seek for BotFather and begin a chat. Ship: “/newbot” command (with out quotes) to start out creating your new bot Comply with BotFather’s prompts:- Enter a bot identify (show identify).- Enter a username that ends with bot (e.g., MyTradingAlerts_bot). BotFather will reply together with your Bot API Token (appears like 123456789:ABCdefGhIJK… ) Copy and maintain the token above secure
II – Get your Chat ID (private, group or channel)
Open the Telegram app (cell or desktop). Seek for @userinfobot and begin a chat. Copy the Id in reply message. It appears like 2012234567
Word: There are a lot of 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 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 discipline and the Chat ID above to Chat Id discipline 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.Â