Update github_cve_monitor.py
修复tgbot 发送失败问题
This commit is contained in:
parent
2bac0c4a73
commit
fba58a7479
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user