mirror of
https://github.com/tiennm99/claude-status-webhook.git
synced 2026-04-17 13:21:01 +00:00
feat: notify admin via Telegram on webhook errors
Send error details to ADMIN_CHAT_ID (optional secret) whenever the statuspage webhook handler hits an error path. Uses waitUntil() so the notification never blocks the 200 response.
This commit is contained in:
@@ -55,6 +55,10 @@ npx wrangler secret put BOT_TOKEN
|
||||
|
||||
npx wrangler secret put WEBHOOK_SECRET
|
||||
# Choose a random secret string for the Statuspage webhook URL
|
||||
|
||||
npx wrangler secret put ADMIN_CHAT_ID
|
||||
# (Optional) Your Telegram chat ID — receive webhook error alerts via Telegram
|
||||
# Use the bot's /info command to find your chat ID
|
||||
```
|
||||
|
||||
### 5. Deploy
|
||||
|
||||
Reference in New Issue
Block a user