def survey_finish_handler(update: Update, context: CallbackContext) -> int: text = messageTextProvider.get_survey_finish_state_text() reply_keyboard = [['Да', 'Нет']] keyboard_markup = ReplyKeyboardMarkup(reply_keyboard, one_time_keyboard=True) helpers.get_message(update).reply_text(text, reply_markup=keyboard_markup) context.user_data['state'] = states.SURVEY_FINISH_STATE return states.SURVEY_FINISH_STATE
def part_3_survey_finish_handler(update: Update, context: CallbackContext) -> int: message = helpers.get_message(update) answerHelper.save_answer(message, context, 'question6') text = messageTextProvider.get_survey_finish_state_text() reply_keyboard = [['Да', 'Нет']] keyboard_markup = ReplyKeyboardMarkup(reply_keyboard, one_time_keyboard=True) message.reply_text(text, reply_markup=keyboard_markup) context.user_data['state'] = states.SURVEY_FINISH_STATE return states.SURVEY_FINISH_STATE