From c9271963b24f8ac8796e172abecdd45e3d175a16 Mon Sep 17 00:00:00 2001 From: dymik739 Date: Thu, 6 Apr 2023 08:20:18 +0300 Subject: [PATCH] main.py: [community suggestion] disable link previews when sending messages --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 2e099d8..f6bac81 100644 --- a/main.py +++ b/main.py @@ -180,7 +180,7 @@ def queue_processor(): if mod.version == 1: responce = mod.process(msg) if len(responce) > 0: - updater.bot.send_message(chat_id = msg.chat.id, text = responce) + updater.bot.send_message(chat_id = msg.chat.id, text = responce, disable_web_page_preview = True) print("Responded using module {} ({}) with text: {}".format(mod.path, mod.alias, responce)) break