From fba58a7479615fd6186873aca6a73f33642261ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?jusk=EF=BC=9F?= <15507925675xiao@gmail.com> Date: Sun, 28 Nov 2021 15:25:03 +0800 Subject: [PATCH] Update github_cve_monitor.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复tgbot 发送失败问题 --- github_cve_monitor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/github_cve_monitor.py b/github_cve_monitor.py index be46fce..118f583 100644 --- a/github_cve_monitor.py +++ b/github_cve_monitor.py @@ -394,7 +394,7 @@ def server(text, msg,sckey): def tgbot(text, msg,token,group_id): import telegram try: - bot = telegram.Bot(token='xxx'.format(token))# Your Telegram Bot Token + bot = telegram.Bot(token='{}'.format(token))# Your Telegram Bot Token bot.send_message(chat_id=group_id, text='{}\r\n{}'.format(text, msg)) except Exception as e: pass