ShippingOption

class telegram.ShippingOption(id, title, prices, *, api_kwargs=None)[source]

Bases: telegram.TelegramObject

This object represents one shipping option.

Objects of this class are comparable in terms of equality. Two objects of this class are considered equal, if their id is equal.

Examples

Payment Bot

Parameters:
id[source]

Shipping option identifier.

Type:

str

title[source]

Option title.

Type:

str

prices[source]

List of price portions.

Changed in version 20.0: This attribute is now an immutable tuple.

Type:

tuple[telegram.LabeledPrice]