telegram.InputLocationMessageContent¶
-
class
telegram.InputLocationMessageContent(latitude: float, longitude: float, live_period: int = None, **kwargs)¶ Bases:
telegram.inline.inputmessagecontent.InputMessageContentRepresents the content of a location message to be sent as the result of an inline query.
Objects of this class are comparable in terms of equality. Two objects of this class are considered equal, if their
latitudeandlongitudeare equal.-
latitude¶ Latitude of the location in degrees.
Type: float
-
longitude¶ Longitude of the location in degrees.
Type: float
-
live_period¶ Optional. Period in seconds for which the location can be updated.
Type: int
Parameters: - latitude (
float) – Latitude of the location in degrees. - longitude (
float) – Longitude of the location in degrees. - live_period (
int, optional) – Period in seconds for which the location can be updated, should be between 60 and 86400. - **kwargs (
dict) – Arbitrary keyword arguments.
-