From da3dbcf96c632f3a24ffe1c2a6487aefad711f5a Mon Sep 17 00:00:00 2001 From: yym68686 Date: Sun, 27 Oct 2024 04:18:56 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Bug:=20Fix=20the=20bug=20of=20mi?= =?UTF-8?q?ssing=20job-queue=20dependency=20package?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bot.py | 1 + requirements.txt | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/bot.py b/bot.py index 18ec1420..1ebd0b7f 100644 --- a/bot.py +++ b/bot.py @@ -400,6 +400,7 @@ async def getChatGPT(update_message, context, title, robot, message, chatid, mes else: tmpresult = f"{tmpresult}\n\n`{e}`" print(tmpresult) + # 检测是否存在 svg now_result = escape(tmpresult, italic=False) if lastresult != now_result and answer_messageid: if "Can't parse entities: can't find end of code entity at byte offset" in tmpresult: diff --git a/requirements.txt b/requirements.txt index 39055d5b..a0b621bd 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,6 +1,6 @@ --index-url https://pypi.python.org/simple/ python-dotenv -python-telegram-bot[webhooks,rate-limiter]==21.0.1 +python-telegram-bot[webhooks,rate-limiter,job-queue]==21.0.1 pytz msgspec