StoryAreaTypeLocation

class telegram.StoryAreaTypeLocation(latitude, longitude, address=None, *, api_kwargs=None)[source]

Bases: telegram.StoryAreaType

Describes a story area pointing to a location. Currently, a story can have up to 10 location areas.

Objects of this class are comparable in terms of equality. Two objects of this class are considered equal, if their latitude and longitude are equal.

Added in version 22.1.

Parameters:
type[source]

Type of the area, always LOCATION.

Type:

str

latitude[source]

Location latitude in degrees.

Type:

float

longitude[source]

Location longitude in degrees.

Type:

float

address[source]

Optional. Address of the location.

Type:

telegram.LocationAddress