79219554

Date: 2024-11-24 07:25:55
Score: 1.5
Natty:
Report link

The problem was that I did not use openInvoice correctly.

The way to call openInvoice using JavaScript is as follows:

window.Telegram.WebApp.openInvoice("linkOfInvoice","CallBack(optional)")

To obtain "linkOfInvoice", we can use the Telegram API and the createInvoiceLink method.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Pantherous