Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

Commit

Permalink
Disable web page preview in styling menu
Browse files Browse the repository at this point in the history
  • Loading branch information
Nukesor committed Aug 18, 2019
1 parent 8e9d9db commit 7845699
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion pollbot/telegram/callback_handler/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)


Expand Down
3 changes: 2 additions & 1 deletion pollbot/telegram/callback_handler/styling.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)


Expand Down

0 comments on commit 7845699

Please sign in to comment.