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), )
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), )
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", )