public static class TdApi.MessageLocation extends TdApi.MessageContent
| Modifier and Type | Field and Description |
|---|---|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
int |
expiresIn
Left time for which the location can be updated, in seconds.
|
int |
heading
For live locations, a direction in which the location moves, in degrees; 1-360.
|
int |
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.
|
TdApi.Location |
location
The location description.
|
int |
proximityAlertRadius
For live locations, a maximum distance to another chat member for proximity alerts, in meters (0-100000).
|
| Constructor and Description |
|---|
MessageLocation()
A message with a location.
|
MessageLocation(TdApi.Location location,
int livePeriod,
int expiresIn,
int heading,
int proximityAlertRadius)
A message with a location.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic TdApi.Location location
public int livePeriod
public int expiresIn
public int heading
public int proximityAlertRadius
public static final int CONSTRUCTOR
public MessageLocation()
public MessageLocation(TdApi.Location location, int livePeriod, int expiresIn, int heading, int proximityAlertRadius)
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.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object