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

# ResidentialAddress

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

  Bases: `telegram.TelegramObject`

  This object represents a residential address.

  Parameters:

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

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

    - city (`str`) – City.

    - state (`str`) – Optional. State.

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

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

  street_line1

    First line for the address.

    Type:

      `str`

  street_line2

    Optional. Second line for the address.

    Type:

      `str`

  city

    City.

    Type:

      `str`

  state

    Optional. State.

    Type:

      `str`

  country_code

    ISO 3166-1 alpha-2 country code.

    Type:

      `str`

  post_code

    Address post code.

    Type:

      `str`

  Available In

  `telegram.EncryptedPassportElement.data`