From c3c9be3a30250cce30e0ee843d55db443cec045e Mon Sep 17 00:00:00 2001 From: Anatoliy Esherkin Date: Thu, 12 Mar 2026 10:41:50 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A7=D0=A1,=20=D0=B2=D0=BE=D0=B7=D0=BC=D0=BE?= =?UTF-8?q?=D0=B6=D0=BD=D0=BE=D1=81=D1=82=D1=8C=20=D0=BE=D1=82=D0=BA=D0=BB?= =?UTF-8?q?=D1=8E=D1=87=D0=B5=D0=BD=D0=B8=D1=8F=20=D0=B1=D0=B5=D0=BB=D1=8B?= =?UTF-8?q?=D1=85=20=D0=B8=20=D1=87=D1=91=D1=80=D0=BD=D1=8B=D1=85=20=D1=81?= =?UTF-8?q?=D0=BF=D0=B8=D1=81=D0=BA=D0=BE=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/common/config.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/common/config.py b/src/common/config.py index dc4c7ed..ba13ee2 100644 --- a/src/common/config.py +++ b/src/common/config.py @@ -43,4 +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_ids = [x.strip() for x in os.getenv("telegram_whitelist_ids", "").split(",") if x.strip()] \ No newline at end of file + telegram_whitelist_enabled = boot(os.getenv("telegram_whitelist_enabled")) or False + telegram_blacklist_enabled = boot(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()]