From b5814bbeef249fc1afa1dbdef067f37ecaa18ab6 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sun, 3 Feb 2019 19:58:53 +0100 Subject: [PATCH] Disable webpage preview --- webserver.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/webserver.py b/webserver.py index fcff68c9..e0fa10ac 100644 --- a/webserver.py +++ b/webserver.py @@ -322,6 +322,7 @@ def page_wiki_lock(key: str): key=key, user=fl_g.user.username), parse_mode="HTML", + disable_web_page_preview=True, disable_notification=True) else: telegram_bot.send_message(config["Telegram"]["main_group"], @@ -329,6 +330,7 @@ def page_wiki_lock(key: str): key=key, user=fl_g.user.username), parse_mode="HTML", + disable_web_page_preview=True, disable_notification=True) except Exception: pass