From ebdae6256ec7f86c2e8c4d31c9e96cde55943923 Mon Sep 17 00:00:00 2001 From: dymik739 Date: Tue, 5 Sep 2023 13:22:11 +0300 Subject: [PATCH] main.py: disable MarkdownV2 to avoid errors --- main.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index c609e88..382d0f8 100644 --- a/main.py +++ b/main.py @@ -191,14 +191,15 @@ def queue_processor(): response = mod.process(msg) if response: + ''' # protecting output symbols_to_escape = ['[', ']', '(', ')', '~', '`', '>', '#', '+', '-', '=', '|', '{', '}', '.', '!'] for symbol in symbols_to_escape: response = response.replace(symbol, f"\\{symbol}") + ''' updater.bot.send_message(chat_id=msg.chat.id, text=response, - disable_web_page_preview=True, - parse_mode="MarkdownV2") + disable_web_page_preview=True) print(f"Responded using module {mod.path} ({mod.alias}) with text: {response}") break