arblant
panel-gateway / wrangler.bot.toml
wrangler.bot.toml18 lines · 636 B
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
name = "panel-gateway-bot"
main = "src/bot.js"
compatibility_date = "2025-01-01"

# Set before deploy (wrangler secret put):
#   TELEGRAM_BOT_TOKEN   from @BotFather
#   WEBHOOK_SECRET       random string, used in the webhook URL path
#   ADMIN_CHAT_ID        your Telegram numeric chat id (bot tells you on /start)
#   GATEWAY_URL          https://<your-gateway-host>
#   GATEWAY_ADMIN_SECRET same as the gateway's ADMIN_SECRET
#   PANEL_HEALTH_URL     optional, e.g. https://<panel-host>/api/health
[vars]
TELEGRAM_BOT_TOKEN = ""
WEBHOOK_SECRET = ""
ADMIN_CHAT_ID = ""
GATEWAY_URL = ""
GATEWAY_ADMIN_SECRET = ""
PANEL_HEALTH_URL = ""