mirror of
https://github.com/openmax-server/server.git
synced 2026-05-22 19:41:41 +03:00
Update config.py
This commit is contained in:
committed by
GitHub
parent
f627cdc785
commit
da1d762c51
@@ -43,8 +43,8 @@ class ServerConfig:
|
||||
### Telegram bot
|
||||
telegram_bot_token = os.getenv("telegram_bot_token") or "123456789:ABCDEFGHIJKLMNOPQRSTUVWXYZ"
|
||||
telegram_bot_enabled = bool(os.getenv("telegram_bot_enabled")) or True
|
||||
telegram_whitelist_enabled = boot(os.getenv("telegram_whitelist_enabled")) or False
|
||||
telegram_blacklist_enabled = boot(os.getenv("telegram_blacklist_enabled")) or False
|
||||
telegram_whitelist_enabled = bool(os.getenv("telegram_whitelist_enabled")) or False
|
||||
telegram_blacklist_enabled = bool(os.getenv("telegram_blacklist_enabled")) or False
|
||||
|
||||
telegram_whitelist_ids = [x.strip() for x in os.getenv("telegram_whitelist_ids", "").split(",") if x.strip()]
|
||||
telegram_blacklist_ids = [x.strip() for x in os.getenv("telegram_blacklist_ids", "").split(",") if x.strip()]
|
||||
|
||||
Reference in New Issue
Block a user