You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a webhook for Upptime to notify the Telegram chat.
4
+
5
+
## Test the webhook
6
+
7
+
Assuming the [.upptimerc.yml](../.upptimerc.yml) is configured with a site whose name starts with "TEST - Intentional Failure", you can test the webhook with the following command:
8
+
9
+
```bash
10
+
curl -X POST "https://uptime-periphery.vercel.app/api/notifyRouter?key=<ROUTER_SECRET>" \
If there's a site whose status needs to be reported to a new channel.
17
+
18
+
1. Create a new Telegram channel for the notifications. Add anyone who needs to be notified to the channel.
19
+
2. Add the Telegram Bot to that channel. Write anything in that channel (relevant for next step).
20
+
3. Get the Telegram Chat ID of the channel by checking the result of this https://api.telegram.org/bot<TELEGRAM_BOT_TOKEN>/getUpdates. Make sure you add the telegram bot token to the URL.
21
+
4. Create a new site. Make sure the name starts with the a given text (let's call this the `prefix`).
22
+
5. Add the `prefix` to the `sitePrefixToTelegramId` record in the [notifyRouter.ts](api/notifyRouter.ts) file, and map it to the Telegram Chat ID you got in step 2.
0 commit comments