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