Class TdApi.MessageLocation
java.lang.Object
dev.voroby.springframework.telegram.client.TdApi.Object
dev.voroby.springframework.telegram.client.TdApi.MessageContent
dev.voroby.springframework.telegram.client.TdApi.MessageLocation
- Enclosing class:
- TdApi
A message with a location.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Identifier uniquely determining type of the object.int
Left time for which the location can be updated, in seconds.int
For live locations, a direction in which the location moves, in degrees; 1-360.int
Time relative to the message send date, for which the location can be updated, in seconds; if 0x7FFFFFFF, then location can be updated forever.The location description.int
For live locations, a maximum distance to another chat member for proximity alerts, in meters (0-100000). 0 if the notification is disabled. -
Constructor Summary
ConstructorDescriptionA message with a location.MessageLocation
(TdApi.Location location, int livePeriod, int expiresIn, int heading, int proximityAlertRadius) A message with a location. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns an identifier uniquely determining type of the object.Methods inherited from class dev.voroby.springframework.telegram.client.TdApi.Object
toString
-
Field Details
-
location
The location description. -
livePeriod
public int livePeriodTime relative to the message send date, for which the location can be updated, in seconds; if 0x7FFFFFFF, then location can be updated forever. -
expiresIn
public int expiresInLeft time for which the location can be updated, in seconds. If 0, then the location can't be updated anymore. The update updateMessageContent is not sent when this field changes. -
heading
public int headingFor live locations, a direction in which the location moves, in degrees; 1-360. If 0 the direction is unknown. -
proximityAlertRadius
public int proximityAlertRadiusFor live locations, a maximum distance to another chat member for proximity alerts, in meters (0-100000). 0 if the notification is disabled. Available only to the message sender. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
MessageLocation
public MessageLocation()A message with a location. -
MessageLocation
public MessageLocation(TdApi.Location location, int livePeriod, int expiresIn, int heading, int proximityAlertRadius) A message with a location.- Parameters:
location
- The location description.livePeriod
- Time relative to the message send date, for which the location can be updated, in seconds; if 0x7FFFFFFF, then location can be updated forever.expiresIn
- Left time for which the location can be updated, in seconds. If 0, then the location can't be updated anymore. The update updateMessageContent is not sent when this field changes.heading
- For live locations, a direction in which the location moves, in degrees; 1-360. If 0 the direction is unknown.proximityAlertRadius
- For live locations, a maximum distance to another chat member for proximity alerts, in meters (0-100000). 0 if the notification is disabled. Available only to the message sender.
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.Object
Returns an identifier uniquely determining type of the object.- Specified by:
getConstructor
in classTdApi.Object
- Returns:
- this.CONSTRUCTOR
-