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

# ShippingAddress

class telegram.ShippingAddress(country_code, state, city, street_line1, street_line2, post_code, *, api_kwargs=None)

  Bases: `telegram.TelegramObject`

  This object represents a Telegram ShippingAddress.

  Objects of this class are comparable in terms of equality. Two objects of this class are considered equal, if their `country_code`, `state`, `city`, `street_line1`, `street_line2` and `post_code` are equal.

  Available In

  - `telegram.OrderInfo.shipping_address`

  - `telegram.ShippingQuery.shipping_address`

  Parameters:

    - country_code (`str`) – ISO 3166-1 alpha-2 country code.

    - state (`str`) – State, if applicable.

    - city (`str`) – City.

    - street_line1 (`str`) – First line for the address.

    - street_line2 (`str`) – Second line for the address.

    - post_code (`str`) – Address post code.

  country_code

    ISO 3166-1 alpha-2 country code.

    Type:

      `str`

  state

    State, if applicable.

    Type:

      `str`

  city

    City.

    Type:

      `str`

  street_line1

    First line for the address.

    Type:

      `str`

  street_line2

    Second line for the address.

    Type:

      `str`

  post_code

    Address post code.

    Type:

      `str`