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:
10
README.md
10
README.md
@@ -80,15 +80,15 @@ npm run deploy
|
||||
|
||||
Note the worker URL from the output (e.g., `https://claude-status-webhook.<your-subdomain>.workers.dev`).
|
||||
|
||||
### 6. Set Telegram webhook
|
||||
### 6. Set up Telegram bot
|
||||
|
||||
Replace `<BOT_TOKEN>` and `<WORKER_URL>` with your values:
|
||||
Visit the setup URL in your browser to register bot commands and set the Telegram webhook in one step:
|
||||
|
||||
```bash
|
||||
curl "https://api.telegram.org/bot<BOT_TOKEN>/setWebhook?url=<WORKER_URL>/webhook/telegram"
|
||||
```
|
||||
https://<WORKER_URL>/webhook/setup/<WEBHOOK_SECRET>
|
||||
```
|
||||
|
||||
You should see `{"ok":true,"result":true,"description":"Webhook was set"}`.
|
||||
You should see a JSON response with `{"ok":true}` for both `webhook` and `commands`.
|
||||
|
||||
### 7. Configure Statuspage webhook
|
||||
|
||||
|
||||
Reference in New Issue
Block a user