payments.PaymentFormStarGift

class pyrogram.raw.types.payments.PaymentFormStarGift

Represents a payment form for a gift, see here » for more info.

Constructor of PaymentForm.

Details:
  • Layer: 223

  • ID: B425CFE1

Parameters:
  • form_id (int 64-bit) – Form ID.

  • invoice (Invoice) – Invoice

Functions:

This object can be returned by 1 function.

payments.GetPaymentForm

Get a payment form

TL Schema

payments.paymentFormStarGift#b425cfe1
form_id:long
invoice:Invoice

= payments.PaymentForm

Parameter Tree

PaymentFormStarGift
├── form_idlong
└── invoiceInvoice
└── Invoice
├── testtrue (optional)
├── name_requestedtrue (optional)
├── phone_requestedtrue (optional)
├── email_requestedtrue (optional)
├── shipping_address_requestedtrue (optional)
├── flexibletrue (optional)
├── phone_to_providertrue (optional)
├── email_to_providertrue (optional)
├── recurringtrue (optional)
├── currencystring
├── pricesVector < LabeledPrice >
│ └── LabeledPrice
│ ├── labelstring
│ └── amountlong
├── max_tip_amountlong (optional)
├── suggested_tip_amountsVector < long > (optional)
├── terms_urlstring (optional)
└── subscription_periodint (optional)

Example

PaymentFormStarGift(
    form_id=0,
    invoice=Invoice(
        currency="text",
        prices=[
                LabeledPrice(
                    label="text",
                    amount=0
                )
            ]
    ),
)