From d5f84d6254df493c6385b71f25c406b75b8a85b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BB=D0=B5=D0=BA=D1=81=D0=B5=D0=B9=20=D0=91=D1=83?= =?UTF-8?q?=D0=B4=D0=B0=D0=B5=D0=B2?= Date: Sat, 13 Jun 2026 23:21:27 +0800 Subject: [PATCH] deltabot.py: sync changes --- deltabot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deltabot.py b/deltabot.py index 23274c7..4ac2494 100644 --- a/deltabot.py +++ b/deltabot.py @@ -868,7 +868,6 @@ def monitor_worker(account): time.sleep(MONITOR_INTERVAL) monitors = load_monitors() changed = False - subscribers = load_subscribers() for m in monitors: ok, detail = check_url(m["url"]) was_ok = m.get("last_ok") @@ -878,7 +877,8 @@ def monitor_worker(account): alert = f"Сайт восстановлен\n{m['url']}" else: alert = f"САЙТ НЕДОСТУПЕН\n{m['url']}\nСтатус: {detail}" - for accid, chat_id in list(subscribers): + chat_id = m.get("added_chat") + if chat_id: try: account._rpc.send_msg(account.id, chat_id, {"text": alert}) except Exception as e: