telegram.Location

class telegram.Location(longitude: float, latitude: float, **kwargs)

Bases: telegram.base.TelegramObject

This object represents a point on the map.

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

longitude

Longitude as defined by sender.

Type:float
latitude

Latitude as defined by sender.

Type:float
Parameters:
  • longitude (float) – Longitude as defined by sender.
  • latitude (float) – Latitude as defined by sender.
  • **kwargs (dict) – Arbitrary keyword arguments.