26 lines
736 B
Bash
26 lines
736 B
Bash
# tg-watchbot environment
|
|
# Create a bot with @BotFather, then put the token here.
|
|
TELEGRAM_BOT_TOKEN=
|
|
|
|
# Telegram numeric chat id that receives monitor notifications and user messages.
|
|
ADMIN_CHAT_ID=
|
|
|
|
LOG_LEVEL=INFO
|
|
|
|
# Web admin panel. Bind to localhost by default; use a reverse proxy / Cloudflare Tunnel if exposing it.
|
|
WEB_PANEL_ENABLED=true
|
|
WEB_PANEL_HOST=0.0.0.0
|
|
WEB_PANEL_PORT=8765
|
|
WEB_PANEL_USER=admin
|
|
WEB_PANEL_PASSWORD=change-me
|
|
WEB_PANEL_SESSION_SECRET=
|
|
|
|
# Optional: user-session listener for TG groups where bot cannot be added.
|
|
TG_API_ID=
|
|
TG_API_HASH=
|
|
TG_API_SESSION=
|
|
|
|
# Optional: proxy for Telethon (MTProto) connections. Required for servers in China.
|
|
# Examples: socks5://127.0.0.1:1080, http://127.0.0.1:7890
|
|
TG_PROXY=
|