Exemplo n.º 1
0
 def go_back():
     resume_message = strings.get_string('resumes.edit', language).format(
         context.user_data['editing_resume'].get('title'))
     Navigation.to_main_menu(
         update, language, user_name=context.user_data['user'].get('name'))
     edit_keyboard = keyboards.get_keyboard('resume.edit', language)
     message.reply_text(text=resume_message,
                        reply_markup=edit_keyboard,
                        parse_mode=ParseMode.HTML)
     return EDIT_ACTION
Exemplo n.º 2
0
def vacation_title(update, context):
    language = context.user_data['user'].get('language')
    if strings.get_string('go_back', language) in update.message.text:
        del context.user_data['vacation']
        Navigation.to_main_menu(
            update, language, user_name=context.user_data['user'].get('name'))
        Navigation.to_account(update, context)
        del context.user_data['has_action']
        return ConversationHandler.END
    context.user_data['vacation']['title'] = update.message.text
    message = strings.get_string('vacations.create.salary', language)
    update.message.reply_text(message, parse_mode=ParseMode.HTML)
    return SALARY
Exemplo n.º 3
0
def resume_title(update, context):
    language = context.user_data['user'].get('language')
    if strings.get_string('go_back', language) in update.message.text:
        Navigation.to_main_menu(
            update, language, user_name=context.user_data['user'].get('name'))
        Navigation.to_account(update, context)
        del context.user_data['has_action']
        del context.user_data['resume']
        return ConversationHandler.END
    context.user_data['resume']['title'] = update.message.text
    message = strings.get_string('resumes.create.description', language)
    update.message.reply_text(message, parse_mode=ParseMode.HTML)
    return DESCRIPTION