payments.sendStarsForm

Make a payment using Telegram Stars, see here » for more info.

payments.paymentResult#4e5f810d updates:Updates = payments.PaymentResult;
payments.paymentVerificationNeeded#d8411139 url:string = payments.PaymentResult;
---functions---
payments.sendStarsForm#2bb731d flags:# form_id:long invoice:InputInvoice = payments.PaymentResult;

Parameters

Name Type Description
flags # Flags, see TL conditional fields
form_id long Payment form ID
invoice InputInvoice Invoice

Result

payments.PaymentResult

Possible errors

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.

Related pages

Telegram Stars

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.

payments.getPaymentForm

Get a payment form