Ejemplo n.º 1
0
def open_user_settings(session, context):
    """Open the user settings."""
    keyboard = get_user_settings_keyboard(context.user)
    text = get_user_settings_text(context.user)
    context.query.message.edit_text(text,
                                    reply_markup=keyboard,
                                    parse_mode="Markdown")
Ejemplo n.º 2
0
def open_user_settings_command(bot, update, session, user):
    """Open the settings menu for the user."""
    update.message.chat.send_message(
        get_user_settings_text(user),
        reply_markup=get_user_settings_keyboard(user),
        parse_mode='markdown',
    )