Esempio n. 1
0
def send_styling_message(session, context):
    """Update the current styling menu message."""
    context.query.message.edit_text(
        text=get_poll_text(session, context.poll),
        parse_mode='markdown',
        reply_markup=get_styling_settings_keyboard(context.poll),
        disable_web_page_preview=True,
    )
Esempio n. 2
0
def show_styling_menu(session, context, poll):
    """Show the menu for sorting settings."""
    context.query.message.edit_text(
        get_poll_text(session, context.poll),
        parse_mode="markdown",
        reply_markup=get_styling_settings_keyboard(poll),
        disable_web_page_preview=True,
    )