public static class TdApi.SetUsername extends TdApi.Function
Returns Ok
TdApi.Function.Constructors
Modifier and Type | Field and Description |
---|---|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
java.lang.String |
username
The new value of the username.
|
Constructor and Description |
---|
SetUsername()
Default constructor for a function, which changes the username of the current user.
|
SetUsername(java.lang.String username)
Creates a function, which changes the username of the current user.
|
Modifier and Type | Method and Description |
---|---|
int |
getConstructor() |
toString
public java.lang.String username
public static final int CONSTRUCTOR
public SetUsername()
Returns Ok
public SetUsername(java.lang.String username)
Returns Ok
username
- The new value of the username. Use an empty string to remove the username.public int getConstructor()
getConstructor
in class TdApi.Function