From 471cf10a029fe1ccda23072943c894cbeee92450 Mon Sep 17 00:00:00 2001 From: aaron <> Date: Wed, 24 Jul 2024 14:35:10 +0800 Subject: [PATCH] 1 --- dingding.py | 2 +- main.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dingding.py b/dingding.py index 1763329..bc3bee8 100644 --- a/dingding.py +++ b/dingding.py @@ -6,4 +6,4 @@ url = 'https://oapi.dingtalk.com/robot/send?access_token=c197bfacc77010e92804ecd # 发送消息 def send_message(text): formData = {"msgtype":"text","text":{"content": text},"isAtAll":1} - requests.post(url, data= formData) \ No newline at end of file + print(requests.post(url, data= formData)) \ No newline at end of file diff --git a/main.py b/main.py index 9484cc2..5683386 100644 --- a/main.py +++ b/main.py @@ -17,7 +17,7 @@ for t in times: version = 'V1.4' print(f'Running... {version}') text = f'☕️ 策略已更新\r\n\r\nVersion: {version}' -telegram_sender.send_message(setting.chat_id, text) +# telegram_sender.send_message(setting.chat_id, text) dingding.send_message(text) while True: schedule.run_pending()