fix misprint
This commit is contained in:
parent
a4e3de9a6c
commit
481954a401
|
|
@ -90,14 +90,15 @@ async def s_api_v1_content_view(request, content_address: str):
|
||||||
invoice_url = exist_invoice.invoice_url
|
invoice_url = exist_invoice.invoice_url
|
||||||
else:
|
else:
|
||||||
invoice_id = f"access_{uuid.uuid4().hex}"
|
invoice_id = f"access_{uuid.uuid4().hex}"
|
||||||
|
invocie_url = None
|
||||||
try:
|
try:
|
||||||
invoice_url = await Bot(token=CLIENT_TELEGRAM_API_KEY).create_invoice_link(
|
invoice_url = await Bot(token=CLIENT_TELEGRAM_API_KEY).create_invoice_link(
|
||||||
'Lifetime access to content',
|
'Lifetime access to content',
|
||||||
'You will receive NFT with lifetime access to content',
|
'You will receive NFT with lifetime access to content',
|
||||||
invoice_id, "", "XTR",
|
invoice_id, "XTR",
|
||||||
[
|
[
|
||||||
types.LabeledPrice(label='Lifetime access', amount=stars_cost),
|
types.LabeledPrice(label='Lifetime access', amount=stars_cost),
|
||||||
],
|
], provider_token = ''
|
||||||
)
|
)
|
||||||
request.ctx.db_session.add(
|
request.ctx.db_session.add(
|
||||||
StarsInvoice(
|
StarsInvoice(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue