@bot.event
async def on_button_click(interaction ):
if interaction.component.custom_id == "Qiwi":
async with p2p:
global new_bill
new_bill = await p2p.bill( lifetime=2)
await interaction.send(f'{new_bill.bill_id} {new_bill.pay_url}', ephemeral = True)
elif interaction.component.custom_id == "Qiwip":
async with p2p:
await interaction.send(await p2p.check(bill_id=new_bill.bill_id).status)
библиотека pyqiwip2p
Вот ошибка:
RuntimeWarning: Enable tracemalloc to get the object allocation traceback