Skip to content
Back to top
View this page

# LocationAddress

class telegram.LocationAddress(country_code, state=None, city=None, street=None, *, api_kwargs=None)

  Bases: `telegram.TelegramObject`

  Describes the physical address of a location.

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

  Available In

  `telegram.StoryAreaTypeLocation.address`

  Added in version 22.1.

  Parameters:

    - country_code (`str`) – The two-letter `ISO 3166-1 alpha-2` country code of the country where the location is located.

    - state (`str`, optional) – State of the location.

    - city (`str`, optional) – City of the location.

    - street (`str`, optional) – Street address of the location.

  country_code

    The two-letter `ISO 3166-1 alpha-2` country code of the country where the location is located.

    Type:

      `str`

  state

    Optional. State of the location.

    Type:

      `str`

  city

    Optional. City of the location.

    Type:

      `str`

  street

    Optional. Street address of the location.

    Type:

      `str`