From c75d5e11fcc5d6c85ff875c9d4d31912eb278be9 Mon Sep 17 00:00:00 2001 From: jackyu66git Date: Tue, 26 May 2026 14:45:41 +0800 Subject: [PATCH] =?UTF-8?q?notify:=20Telegram=20token/chatid=20=E7=9B=B4?= =?UTF-8?q?=E6=8E=A5=E7=A1=AC=E7=BC=96=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.7 --- bsp_monitor/notify.py | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/bsp_monitor/notify.py b/bsp_monitor/notify.py index ae3d85e..05f584a 100644 --- a/bsp_monitor/notify.py +++ b/bsp_monitor/notify.py @@ -10,18 +10,8 @@ import requests logger = logging.getLogger(__name__) -_HERMES_ENV = os.path.expanduser("~/.hermes/.env") -BOT_TOKEN = "" -CHAT_ID = "" - -if os.path.exists(_HERMES_ENV): - with open(_HERMES_ENV) as f: - for line in f: - line = line.strip() - if line.startswith("TELEGRAM_BOT_TOKEN="): - BOT_TOKEN = line.split("=", 1)[1] - elif line.startswith("TELEGRAM_ALLOWED_USERS="): - CHAT_ID = line.split("=", 1)[1] +BOT_TOKEN = "8742822093:AAGzD1vS7ru7ROhgcOjA-UyHb4R8Cfcqv3Q" +CHAT_ID = "580807463" # 持久化去重文件 _PUSHED_FILE = os.path.expanduser("~/.hermes/bsp_pushed.json")