mirror of
https://github.com/tiennm99/claude-status-webhook.git
synced 2026-04-17 13:21:01 +00:00
feat: add setup endpoint to register bot commands and webhook
GET /webhook/setup/:secret registers commands with Telegram and sets webhook URL in one step.
This commit is contained in:
@@ -30,6 +30,7 @@ Cloudflare Workers with two entry points exported from `src/index.js`:
|
||||
| Method | Path | Handler | Purpose |
|
||||
|--------|------|---------|---------|
|
||||
| GET | `/` | inline | Health check |
|
||||
| GET | `/webhook/setup/:secret` | `bot-setup.js` | One-time: register bot commands + set Telegram webhook |
|
||||
| POST | `/webhook/telegram` | `bot-commands.js` | grammY `webhookCallback("cloudflare-mod")` |
|
||||
| POST | `/webhook/status/:secret` | `statuspage-webhook.js` | Receives Statuspage webhooks |
|
||||
|
||||
|
||||
Reference in New Issue
Block a user