Files
claude-status-webhook/wrangler.jsonc
tiennm99 01320abacd feat: implement Telegram bot for Claude status webhooks
Cloudflare Workers bot that forwards status.claude.com (Atlassian
Statuspage) incident and component updates to subscribed Telegram
users via CF Queues fan-out.

- Hono.js routing with grammY webhook handler
- Bot commands: /start, /stop, /status, /subscribe
- Supergroup topic support (message_thread_id)
- KV store with claude-status: prefix and composite keys
- Queue consumer with batch send, 403 auto-removal, 429 retry
- Timing-safe webhook secret validation
- HTML escaping for Telegram messages
2026-04-08 22:59:37 +07:00

20 lines
543 B
JSON

{
"name": "claude-status-webhook",
"main": "src/index.js",
"compatibility_date": "2024-12-01",
"kv_namespaces": [
{ "binding": "SUBSCRIBERS", "id": "<KV_NAMESPACE_ID>" }
],
"queues": {
"producers": [
{ "binding": "STATUS_QUEUE", "queue": "status-notifications" }
],
"consumers": [
{ "queue": "status-notifications", "max_batch_size": 30, "max_retries": 3 }
]
}
// Secrets (set via `wrangler secret put`):
// BOT_TOKEN - Telegram bot token
// WEBHOOK_SECRET - Statuspage webhook URL secret
}