mirror of
https://github.com/whyour/qinglong.git
synced 2026-07-01 04:40:38 +08:00
通知 TG_API_HOST 参数移除默认 https 协议,参数包含协议
This commit is contained in:
+1
-1
@@ -534,7 +534,7 @@ def telegram_bot(title: str, content: str) -> None:
|
||||
print("tg 服务启动")
|
||||
|
||||
if push_config.get("TG_API_HOST"):
|
||||
url = f"https://{push_config.get('TG_API_HOST')}/bot{push_config.get('TG_BOT_TOKEN')}/sendMessage"
|
||||
url = f"{push_config.get('TG_API_HOST')}/bot{push_config.get('TG_BOT_TOKEN')}/sendMessage"
|
||||
else:
|
||||
url = (
|
||||
f"https://api.telegram.org/bot{push_config.get('TG_BOT_TOKEN')}/sendMessage"
|
||||
|
||||
Reference in New Issue
Block a user