Package it.tdlight.jni
Class TdApi.InputMessageLocation
java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.InputMessageContent
it.tdlight.jni.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 int
CONSTRUCTOR
int
heading
For live locations, a direction in which the location moves, in degrees; 1-360.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.TdApi.Location
location
Location to be sent.int
proximityAlertRadius
For 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.InputMessageLocation(DataInput input)
-
Method Summary
Modifier and Type Method Description boolean
equals(Object o)
int
getConstructor()
int
hashCode()
void
serialize(DataOutput output)
Methods inherited from class it.tdlight.jni.TdApi.Object
serialize, toString
-
Field Details
-
location
Location to be sent. -
livePeriod
public int livePeriodPeriod 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 headingFor live locations, a direction in which the location moves, in degrees; 1-360. Pass 0 if unknown. -
proximityAlertRadius
public int proximityAlertRadiusFor 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- See Also:
- Constant Field Values
-
-
Constructor Details
-
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 Location to be sent.livePeriod
- int Period for which the location can be updated, in seconds; must be between 60 and 86400 for a live location and 0 otherwise.heading
- int For live locations, a direction in which the location moves, in degrees; 1-360. Pass 0 if unknown.proximityAlertRadius
- int 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.
-
InputMessageLocation
- Throws:
IOException
-
-
Method Details
-
getConstructor
public int getConstructor()- Specified by:
getConstructor
in classTdApi.Object
-
serialize
- Specified by:
serialize
in classTdApi.Object
- Throws:
IOException
-
equals
-
hashCode
public int hashCode()
-