From 76006230d9356008076ff6e120de84cf00700069 Mon Sep 17 00:00:00 2001 From: yshtcn Date: Sun, 24 Nov 2024 09:51:49 +0800 Subject: [PATCH] =?UTF-8?q?-=20=E5=BB=B6=E8=BF=9F=E6=B6=88=E6=81=AF?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=97=B6=E9=97=B4=E6=88=B3=EF=BC=8C=E5=8F=AF?= =?UTF-8?q?=E4=BB=A5=E7=9F=A5=E9=81=93=E6=98=AF=E4=BB=80=E4=B9=88=E6=97=B6?= =?UTF-8?q?=E5=80=99=E6=94=B6=E5=88=B0=E7=9A=84=E6=B6=88=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ServerChanPush2TelegramBot.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ServerChanPush2TelegramBot.py b/ServerChanPush2TelegramBot.py index 1427fee..3ef473d 100644 --- a/ServerChanPush2TelegramBot.py +++ b/ServerChanPush2TelegramBot.py @@ -345,11 +345,12 @@ def index(): # write_pending_messages(new_pending_messages) return jsonify(response), 200 else: + current_timestamp = datetime.now().strftime("%Y-%m-%d %H:%M:%S") if "【This is a delayed message】" not in desp: if desp is None: - desp = f"【This is a delayed message】" + desp = f"【This is a delayed message】\n\nTimestamp: {current_timestamp}" else: - desp = desp + f"\n\n【This is a delayed message】" + desp = desp + f"\n\n【This is a delayed message】\n\nTimestamp: {current_timestamp}" pending_messages.append({ 'bot_id': bot_id,