From 0f4646f99312b2437e8e09e7568f714e1e9b2e29 Mon Sep 17 00:00:00 2001 From: yym68686 Date: Tue, 25 Jun 2024 21:57:14 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Feature:=20Support=20markdown=20fil?= =?UTF-8?q?e=20reading?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 💻 Code: Upgrade ModelMerge version to 0.7.9 --- bot.py | 2 +- requirements.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bot.py b/bot.py index a3409192..c02e68f7 100644 --- a/bot.py +++ b/bot.py @@ -626,7 +626,7 @@ async def process_update(update): # application.add_handler(MessageHandler(~filters.CAPTION & , handle_file)) application.add_handler(MessageHandler(filters.TEXT & ~filters.COMMAND, lambda update, context: command_bot(update, context, prompt=None, has_command=False), block = False)) application.add_handler(MessageHandler(filters.CAPTION & ((filters.PHOTO & ~filters.COMMAND) | (filters.Document.FileExtension("jpg") | filters.Document.FileExtension("jpeg") | filters.Document.FileExtension("png"))), lambda update, context: command_bot(update, context, prompt=None, has_command=False))) - application.add_handler(MessageHandler(~filters.CAPTION & ((filters.PHOTO & ~filters.COMMAND) | (filters.Document.PDF | filters.Document.TXT | filters.Document.DOC | filters.Document.FileExtension("jpg") | filters.Document.FileExtension("jpeg"))), handle_file)) + application.add_handler(MessageHandler(~filters.CAPTION & ((filters.PHOTO & ~filters.COMMAND) | (filters.Document.PDF | filters.Document.TXT | filters.Document.DOC | filters.Document.FileExtension("jpg") | filters.Document.FileExtension("jpeg") | filters.Document.FileExtension("md"))), handle_file)) application.add_handler(MessageHandler(filters.COMMAND, unknown)) application.add_error_handler(error) diff --git a/requirements.txt b/requirements.txt index 72daca67..d738dba3 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,5 @@ --index-url https://pypi.python.org/simple/ python-dotenv md2tgmd==0.2.3 -ModelMerge==0.7.8 +ModelMerge==0.7.9 python-telegram-bot[webhooks,rate-limiter]==21.0.1 \ No newline at end of file