Aiogram. How to make it so that when you click on an inline button, the records from the database are displayed in turn

How to make it so that when you click on an inline button, the records from the database are displayed in turn

client.py

async def shorts_command(message: types.Message):
    read = await sql_db.sql_shorts()
    for ret in read:
        await bot.send_photo(
            message.from_user.id, ret[0], f'{ret[1]}\nАртикл: {ret[2]}\nТип: {ret[3]}\nЦена: {ret[4]}\nСсылка: {ret[-1]}'
        ) 

**db.py**
async def sql_shorts():
    return cur.execute('SELECT * FROM cloth WHERE type="шорты"')

Ответы (0 шт):