From 7b243908aae233e17da7a216943252380258e73c Mon Sep 17 00:00:00 2001 From: Leon <62660101+Oreomeow@users.noreply.github.com> Date: Wed, 25 Aug 2021 00:00:39 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20TG=5FAPI=5FHOST=20?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Scripts/py/EUserv_extend.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Scripts/py/EUserv_extend.py b/Scripts/py/EUserv_extend.py index 8ddcfc4..07abc1b 100644 --- a/Scripts/py/EUserv_extend.py +++ b/Scripts/py/EUserv_extend.py @@ -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)