Exemple #1
0
def show_settings(bot, update, session, chat, user):
    """Update the settings message."""
    update.message.send_message(
        get_settings_text(user),
        parse_mode="Markdown",
        reply_markup=get_settings_keyboard(user),
    )
Exemple #2
0
def update_settings(context):
    """Update the settings message."""
    context.message.edit_text(
        get_settings_text(context.user),
        parse_mode="Markdown",
        reply_markup=get_settings_keyboard(context.user),
    )
Exemple #3
0
def open_admin_settings(session, context):
    """Open the user settings menu."""
    admin_keyboard = get_admin_settings_keyboard(context.user)
    context.query.message.edit_text(
        get_settings_text(context.user),
        reply_markup=admin_keyboard,
        parse_mode="Markdown",
    )