ShippingOption

class pyrogram.raw.types.ShippingOption

Shipping option

Constructor of ShippingOption.

Details:
  • Layer: 223

  • ID: B6213CDF

Parameters:
  • id (str) – Option ID

  • title (str) – Title

  • prices (List of LabeledPrice) – List of price portions

TL Schema

shippingOption#b6213cdf
id:string
title:string
prices:Vector<LabeledPrice>

= ShippingOption

Parameter Tree

ShippingOption
├── idstring
├── titlestring
└── pricesVector < LabeledPrice >
└── LabeledPrice
├── labelstring
└── amountlong

Example

ShippingOption(
    id="text",
    title="text",
    prices=[
            LabeledPrice(
                label="text",
                amount=0
            )
        ],
)