Hide navigation sidebar
Hide table of contents sidebar
PTB has undergone significant changes in v20. Please read the documentation carefully and also check out the transition guide in the wiki.
Back to top
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.

  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`

  Available In

  - `telegram.PreCheckoutQuery.order_info`

  - `telegram.SuccessfulPayment.order_info`

  classmethod de_json(data, bot)

    See `telegram.TelegramObject.de_json()`.