- Add telegram-cli Worker with web chat UI for browser-based bot testing - Add POST /api/chat authenticated endpoint (Bearer token, production enabled) - Fix ENVIRONMENT to production in wrangler.toml (was blocking Service Binding) - Add Service Binding (BOT_WORKER) for Worker-to-Worker communication - Add cloud-db-schema.sql for local development telegram-cli features: - Web UI at GET / with dark theme - JSON API at POST /api/chat - Service Binding to telegram-summary-bot Worker Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
21 lines
436 B
TOML
21 lines
436 B
TOML
name = "telegram-cli-web"
|
|
main = "src/index.ts"
|
|
compatibility_date = "2024-01-01"
|
|
|
|
# Environment Variables
|
|
[vars]
|
|
CHAT_ID = "821596605"
|
|
BOT_WORKER_URL = "https://telegram-summary-bot.kappa-d8e.workers.dev"
|
|
|
|
# Secrets (set with: wrangler secret put SECRET_NAME)
|
|
# - BOT_TOKEN
|
|
# - WEBHOOK_SECRET
|
|
|
|
# Service Binding (Worker-to-Worker 통신)
|
|
[[services]]
|
|
binding = "BOT_WORKER"
|
|
service = "telegram-summary-bot"
|
|
|
|
# Deploy
|
|
# wrangler deploy
|