Package org.drinkless.tdlib
Class TdApi.InputMessageLocation
- java.lang.Object
-
- org.drinkless.tdlib.TdApi.Object
-
- org.drinkless.tdlib.TdApi.InputMessageContent
-
- org.drinkless.tdlib.TdApi.InputMessageLocation
-
- Enclosing class:
- TdApi
public static class TdApi.InputMessageLocation extends TdApi.InputMessageContent
A message with a location.
-
-
Field Summary
Fields Modifier and Type Field Description static intCONSTRUCTORIdentifier uniquely determining type of the object.intheadingFor live locations, a direction in which the location moves, in degrees; 1-360.intlivePeriodPeriod for which the location can be updated, in seconds; must be between 60 and 86400 for a live location and 0 otherwise.TdApi.LocationlocationLocation to be sent.intproximityAlertRadiusFor live locations, a maximum distance to another chat member for proximity alerts, in meters (0-100000).
-
Constructor Summary
Constructors Constructor Description InputMessageLocation()A message with a location.InputMessageLocation(TdApi.Location location, int livePeriod, int heading, int proximityAlertRadius)A message with a location.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetConstructor()-
Methods inherited from class org.drinkless.tdlib.TdApi.Object
toString
-
-
-
-
Field Detail
-
location
public TdApi.Location location
Location to be sent.
-
livePeriod
public int livePeriod
Period for which the location can be updated, in seconds; must be between 60 and 86400 for a live location and 0 otherwise.
-
heading
public int heading
For live locations, a direction in which the location moves, in degrees; 1-360. Pass 0 if unknown.
-
proximityAlertRadius
public int proximityAlertRadius
For live locations, a maximum distance to another chat member for proximity alerts, in meters (0-100000). Pass 0 if the notification is disabled. Can't be enabled in channels and Saved Messages.
-
CONSTRUCTOR
public static final int CONSTRUCTOR
Identifier uniquely determining type of the object.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
InputMessageLocation
public InputMessageLocation()
A message with a location.
-
InputMessageLocation
public InputMessageLocation(TdApi.Location location, int livePeriod, int heading, int proximityAlertRadius)
A message with a location.- Parameters:
location- Location to be sent.livePeriod- Period for which the location can be updated, in seconds; must be between 60 and 86400 for a live location and 0 otherwise.heading- For live locations, a direction in which the location moves, in degrees; 1-360. Pass 0 if unknown.proximityAlertRadius- For live locations, a maximum distance to another chat member for proximity alerts, in meters (0-100000). Pass 0 if the notification is disabled. Can't be enabled in channels and Saved Messages.
-
-
Method Detail
-
getConstructor
public int getConstructor()
- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-
-