ShippingOption

class pyrogram.raw.types.ShippingOption

Shipping option

Constructor of ShippingOption.

Details:
  • Layer: 227

  • 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
├── id → string
├── title → string
└── prices → Vector < LabeledPrice >
└── LabeledPrice
├── label → string
└── amount → long

Example

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