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 | 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 | PEER_ID_INVALID | The provided peer id is invalid. |
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