Make a payment using Telegram Stars, see here » for more info.
Method schema is available as of layer 189. Switch »
Name | Type | Description |
---|---|---|
form_id | long | Payment form ID |
invoice | InputInvoice | Invoice |
Code | Type | Description |
---|---|---|
400 | BALANCE_TOO_LOW | The transaction cannot be completed because the current Telegram Stars balance is too low. |
400 | BOT_INVOICE_INVALID | The specified invoice is invalid. |
400 | FORM_EXPIRED | The form was generated more than 10 minutes ago and has expired, please re-generate it using payments.getPaymentForm and pass the new form_id . |
400 | FORM_ID_EMPTY | The specified form ID is empty. |
400 | FORM_UNSUPPORTED | Please update your client. |
400 | PEER_ID_INVALID | The provided peer id is invalid. |
400 | STARGIFT_USAGE_LIMITED | The gift is sold out. |
Telegram Stars are virtual items that allow users to purchase digital goods and services from bots and mini apps inside the Telegram ecosystem, send gifts to content creators on the Telegram platform, and more.
Get a payment form