Skip to content
Back to top
View this page

# StoryAreaTypeLocation

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

  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.

  Available In

  `telegram.StoryArea.type`

  Added in version 22.1.

  Parameters:

    - latitude (`float`) – Location latitude in degrees.

    - longitude (`float`) – Location longitude in degrees.

    - address (`telegram.LocationAddress`, optional) – Address of the location.

  type

    Type of the area, always `LOCATION`.

    Type:

      `str`

  latitude

    Location latitude in degrees.

    Type:

      `float`

  longitude

    Location longitude in degrees.

    Type:

      `float`

  address

    Optional. Address of the location.

    Type:

      `telegram.LocationAddress`