Add telegram bot
This commit is contained in:
1 parent
134d610a5d
commit
6d2d9ab9ae
15 files changed
+941
No files matched your search
@@ -0,0 +1,15 @@
|
||||
# Copy to .env and edit.
|
||||
|
||||
API_BASE_URL=http://localhost:8088
|
||||
API_LOGIN=bot-user
|
||||
API_PASSWORD=change-me
|
||||
|
||||
# Bot token from @BotFather; chat id is @group or a numeric id (negative).
|
||||
TELEGRAM_BOT_TOKEN=123456:ABC-DEF-your-token
|
||||
TELEGRAM_CHAT_ID=@my-group
|
||||
|
||||
# Optional.
|
||||
BOT_POLL_INTERVAL_SECONDS=900
|
||||
BOT_STATE_FILE=state.json
|
||||
# Route API + Telegram traffic through SOCKS5 (needs requests[socks]).
|
||||
SOCKS5_PROXY=
|
||||
Reference in new issue
Block a user