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: 227

  • 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_id → long
└── invoice → Invoice
└── Invoice
├── test → true (optional)
├── name_requested → true (optional)
├── phone_requested → true (optional)
├── email_requested → true (optional)
├── shipping_address_requested → true (optional)
├── flexible → true (optional)
├── phone_to_provider → true (optional)
├── email_to_provider → true (optional)
├── recurring → true (optional)
├── currency → string
├── prices → Vector < LabeledPrice >
│ └── LabeledPrice
│ ├── label → string
│ └── amount → long
├── max_tip_amount → long (optional)
├── suggested_tip_amounts → Vector < long > (optional)
├── terms_url → string (optional)
└── subscription_period → int (optional)

Example

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