Update config.py

This commit is contained in:
Anatoliy Esherkin 2026-03-12 11:35:46 +03:00 committed by GitHub
parent f627cdc785
commit da1d762c51
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -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()]