id -> invoice_id

This commit is contained in:
2025-11-11 15:09:54 +03:00
parent 7214981aff
commit 4241a20926
2 changed files with 6 additions and 6 deletions
+4 -4
View File
@@ -55,10 +55,10 @@ async def create_invoice(token, dst_username, amount=None):
data['amount'] = amount
return await call('api/create_invoice/', data)
async def delete_invoice(token, id):
data = {'token': token, 'id': id}
async def delete_invoice(token, invoice_id):
data = {'token': token, 'invoice_id': invoice_id}
return await call('api/delete_invoice/', data)
async def get_invoice(token, id):
data = {'token': token, 'id': id}
async def get_invoice(token, invoice_id):
data = {'token': token, 'invoice_id': invoice_id}
return await call('api/get_invoice/', data)