def show_poll_type_keyboard(session, context, poll): """Show to vote type keyboard.""" poll = session.query(Poll).get(context.payload) keyboard = get_change_poll_type_keyboard(poll) context.query.message.edit_text(get_poll_type_help_text(poll), parse_mode='markdown', reply_markup=keyboard)
def show_poll_type_keyboard(session, context, poll): """Show the keyboard to change poll type.""" # TODO: Review if the poll isn't already available from arguments..? @Nukesor poll = session.query(Poll).get(context.payload) keyboard = get_change_poll_type_keyboard(poll) context.query.message.edit_text( get_poll_type_help_text(poll), parse_mode="markdown", reply_markup=keyboard )
def show_poll_type_keyboard(session, context, poll): """Change the initial keyboard to vote type keyboard.""" keyboard = get_change_poll_type_keyboard(poll) context.query.message.edit_text(reply_markup=keyboard)