Package org.drinkless.tdlib
Class TdApi.SetUsername
- Enclosing class:
- TdApi
Changes the editable username of the current user.
Returns Ok
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Identifier uniquely determining type of the object.The new value of the username. -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for a function, which changes the editable username of the current user.SetUsername
(String username) Creates a function, which changes the editable username of the current user. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns an identifier uniquely determining type of the object.Methods inherited from class org.drinkless.tdlib.TdApi.Function
toString
-
Field Details
-
username
The new value of the username. Use an empty string to remove the username. The username can't be completely removed if there is another active or disabled username. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
SetUsername
public SetUsername()Default constructor for a function, which changes the editable username of the current user.Returns
Ok
-
SetUsername
Creates a function, which changes the editable username of the current user.Returns
Ok
- Parameters:
username
- The new value of the username. Use an empty string to remove the username. The username can't be completely removed if there is another active or disabled username.
-
-
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
-