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