telegram.OrderInfo
- class telegram.OrderInfo(name=None, phone_number=None, email=None, shipping_address=None, **_kwargs)
Bases:
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
andshipping_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.**kwargs (
dict
) – Arbitrary keyword arguments.
- 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:
- classmethod de_json(data, bot)