@dp.message_handler(content_types=['text'])
async def profile(msg: types.Message):
if msg.text.lower() == "профиль":
cursor.execute("SELECT * FROM users WHERE chat_id = '{msg.chat.id}'")
for value in cursor.execute(f"SELECT * FROM users WHERE chat_id = '{msg.chat.id}'"):
print(value[0], value[1], value[2])
await msg.answer(f"id: " + value[0] + "\n\n" + "Имя: " + value[1] + "\n\n" + "Баланс: " + str(value[2]))