Hide navigation sidebar
Hide table of contents sidebar
Skip to content
Back to top
View this page
Toggle table of contents sidebar

# OrderInfo

class telegram.OrderInfo(name=None, phone_number=None, email=None, shipping_address=None, *, api_kwargs=None)

  Bases: `telegram.TelegramObject`

  This object represents information about an order.

  Objects of this class are comparable in terms of equality. Two objects of this class are considered equal, if their `name`, `phone_number`, `email` and `shipping_address` are equal.

  Available In

  - `telegram.PreCheckoutQuery.order_info`

  - `telegram.SuccessfulPayment.order_info`

  Parameters:

    - name (`str`, optional) – User name.

    - phone_number (`str`, optional) – User’s phone number.

    - email (`str`, optional) – User email.

    - shipping_address (`telegram.ShippingAddress`, optional) – User shipping address.

  name

    Optional. User name.

    Type:

      `str`

  phone_number

    Optional. User’s phone number.

    Type:

      `str`

  email

    Optional. User email.

    Type:

      `str`

  shipping_address

    Optional. User shipping address.

    Type:

      `telegram.ShippingAddress`

  classmethod de_json(data, bot=None)

    See `telegram.TelegramObject.de_json()`.