mirror of
https://github.com/tiennm99/claude-status-webhook.git
synced 2026-04-17 13:21:01 +00:00
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
20 lines
543 B
JSON
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
|
|
}
|