From 78456995d12ebc6a69d85a1778fa97eef686d73e Mon Sep 17 00:00:00 2001 From: Arne Beer Date: Sun, 18 Aug 2019 14:09:25 +0200 Subject: [PATCH] Disable web page preview in styling menu --- pollbot/telegram/callback_handler/settings.py | 3 ++- pollbot/telegram/callback_handler/styling.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/pollbot/telegram/callback_handler/settings.py b/pollbot/telegram/callback_handler/settings.py index f3c6f572..c4ba6ef8 100644 --- a/pollbot/telegram/callback_handler/settings.py +++ b/pollbot/telegram/callback_handler/settings.py @@ -96,7 +96,8 @@ def show_styling_menu(session, context, poll): context.query.message.edit_text( get_poll_text(session, context.poll), parse_mode='markdown', - reply_markup=get_styling_settings_keyboard(poll) + reply_markup=get_styling_settings_keyboard(poll), + disable_web_page_preview=True, ) diff --git a/pollbot/telegram/callback_handler/styling.py b/pollbot/telegram/callback_handler/styling.py index fce6440b..92ccc9e1 100644 --- a/pollbot/telegram/callback_handler/styling.py +++ b/pollbot/telegram/callback_handler/styling.py @@ -10,7 +10,8 @@ def send_styling_message(session, context): context.query.message.edit_text( text=get_poll_text(session, context.poll), parse_mode='markdown', - reply_markup=get_styling_settings_keyboard(context.poll) + reply_markup=get_styling_settings_keyboard(context.poll), + disable_web_page_preview=True, )