Package org.drinkless.tdlib
Class TdApi.SetLocation
- java.lang.Object
-
- org.drinkless.tdlib.TdApi.Object
-
- org.drinkless.tdlib.TdApi.Function
-
- org.drinkless.tdlib.TdApi.SetLocation
-
- Enclosing class:
- TdApi
public static class TdApi.SetLocation extends TdApi.Function
Changes the location of the current user. Needs to be called if GetOption("is_location_visible") is true and location changes for more than 1 kilometer.Returns
Ok
-
-
Field Summary
Fields Modifier and Type Field Description static intCONSTRUCTORIdentifier uniquely determining type of the object.TdApi.LocationlocationThe new location of the user.
-
Constructor Summary
Constructors Constructor Description SetLocation()Default constructor for a function, which changes the location of the current user.SetLocation(TdApi.Location location)Creates a function, which changes the location of the current user.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetConstructor()-
Methods inherited from class org.drinkless.tdlib.TdApi.Function
toString
-
-
-
-
Field Detail
-
location
public TdApi.Location location
The new location of the user.
-
CONSTRUCTOR
public static final int CONSTRUCTOR
Identifier uniquely determining type of the object.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SetLocation
public SetLocation()
Default constructor for a function, which changes the location of the current user. Needs to be called if GetOption("is_location_visible") is true and location changes for more than 1 kilometer.Returns
Ok
-
SetLocation
public SetLocation(TdApi.Location location)
Creates a function, which changes the location of the current user. Needs to be called if GetOption("is_location_visible") is true and location changes for more than 1 kilometer.Returns
Ok- Parameters:
location- The new location of the user.
-
-
Method Detail
-
getConstructor
public int getConstructor()
- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-
-