修复 TG_API_HOST 问题

This commit is contained in:
Leon 2021-08-25 00:00:39 +08:00 committed by GitHub
parent ae5c5986cd
commit 7b243908aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -198,6 +198,8 @@ def push_plus():
# Telegram Bot Push https://core.telegram.org/bots/api#authorizing-your-bot
def telegram():
if TG_API_HOST == "" or TG_API_HOST == None:
TG_API_HOST = "api.telegram.org"
data = (
('chat_id', TG_USER_ID),
('text', 'EUserv续费日志\n\n' + desp)