Class TdApi.InputMessageLocation
java.lang.Object
dev.voroby.springframework.telegram.client.TdApi.Object
dev.voroby.springframework.telegram.client.TdApi.InputMessageContent
dev.voroby.springframework.telegram.client.TdApi.InputMessageLocation
- Enclosing class:
- TdApi
A message with a location.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Identifier uniquely determining type of the object.int
For live locations, a direction in which the location moves, in degrees; 1-360.int
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.Location to be sent.int
For live locations, a maximum distance to another chat member for proximity alerts, in meters (0-100000). -
Constructor Summary
ConstructorDescriptionA message with a location.InputMessageLocation
(TdApi.Location location, int livePeriod, 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
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 temporary live location, 0x7FFFFFFF for permanent 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 CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
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 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.
-
-
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
-