- New src/telegramBot.js: separate process for health checks + Telegram notifications - Updated src/whatsappApi.js notifyAdmin(): falls back to Telegram when WhatsApp API is down - Updated .env.example with TELEGRAM_* configuration variables - Design doc and implementation plan
29 lines
741 B
Shell
29 lines
741 B
Shell
# WhatsApp API Configuration
|
|
WHATSAPP_API_ENDPOINT=http://localhost:3000
|
|
WHATSAPP_SESSION=EdGpt
|
|
|
|
# Webhook Configuration
|
|
WEBHOOK_PORT=3002
|
|
ALLOWED_GROUP=120363407613652082@g.us
|
|
BOT_NAME=EdGpt
|
|
|
|
# Paths
|
|
DIENSTEN_JSON=./diensten/dienst-tijden.json
|
|
DIENSTEN_PNG=./diensten/png
|
|
|
|
# Rate limiting
|
|
MAX_REQUESTS_PER_DAY=5
|
|
|
|
# Admin notifications
|
|
ADMIN_NUMBER=31612345678@c.us
|
|
|
|
# Telegram watchdog (fallback when WhatsApp API is down)
|
|
TELEGRAM_BOT_URL=http://localhost:3004
|
|
|
|
# Telegram watchdog configuration (telegram-bot process)
|
|
TELEGRAM_BOT_TOKEN=
|
|
TELEGRAM_ADMIN_CHAT_ID=
|
|
TELEGRAM_BOT_PORT=3004
|
|
DIENST_BOT_HEALTH_URL=http://localhost:3002/health
|
|
WWEBJS_API_SESSION_URL=http://192.168.5.252:3001/session/status/EdGpt
|
|
HEALTH_CHECK_INTERVAL_MS=300000
|