public static class TdApi.InputMessageLocation extends TdApi.InputMessageContent
| Modifier and Type | Field and Description |
|---|---|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
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 temporary live location, 0x7FFFFFFF for permanent 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 and Description |
|---|
InputMessageLocation()
A message with a location.
|
InputMessageLocation(TdApi.Location location,
int livePeriod,
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 heading
public int proximityAlertRadius
public static final int CONSTRUCTOR
public InputMessageLocation()
public InputMessageLocation(TdApi.Location location, int livePeriod, int heading, int proximityAlertRadius)
location - Location to be sent.livePeriod - Period for which the location can be updated, in seconds; must be between 60 and 86400 for a temporary live location, 0x7FFFFFFF for permanent 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.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object