LocationAddress

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

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.

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[source]

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

Type:

str

state[source]

Optional. State of the location.

Type:

str

city[source]

Optional. City of the location.

Type:

str

street[source]

Optional. Street address of the location.

Type:

str