🚨How to: Telegram Alerts

Learn how to setup your Telegram bot and group to get notified.

Step 1: Create a group

Go to Telegram and make a new group, call it whatever and keep it private.

Step 2: Create a bot

Go to https://t.me/BotFather and send /start then /newbot it'll ask for the name and stuff just call it whatever.

You'll get the bot token, save it on Notepad or anywhere, you'll need to add it on the Settings and to get the chat ID.

Step 3: Add the bot to the group

Click the bot profile and click on "Add to group"

Then select the group you just created.

Step 4: Get the chat ID

Grab your bot token and copy paste this url in your browser.

https://api.telegram.org/bot[tokenHere]/getUpdates
eg. https://api.telegram.org/bot123456789:abcdef/getUpdates

If the response is empty remove the bot from the group and add it back. You'll then get a big JSON response, click "pretty-print" to get it sorted and find the group ID

my_chat_member > chat > id > -123456789

Sometimes you'll get a "-" sign before, sometimes you won't. Make sure to include it in Settings if you have it.

Last updated