Я пишу на aiogram.
Мне нужно чтобы пользователь вводил название архива и ему выводилось zip_pay и pass_pay
@dp.message_handler(state = FSMForms.history)
async def process_call(message: types.Message, state: FSMContext):
async with state.proxy() as data:
data['history'] = str(message.text)
await bot.send_message(message.from_user.id, md.text(md.text('Вы ввели:', (data['history'])))),
await db.user_hist(state)
await state.finish()
И пытаюсь передать это сюда
async def user_hist(self, state):
with self.connection:
async with state.proxy() as data:
for i in self.cursor.execute("SELECT `zip_pay`, `pass_pay` FROM `product` WHERE `zip_file` = ?", tuple(data.values)):
print(i)
но ничего не происходит