public static class TdApi.SetUsername extends TdApi.Function<TdApi.Ok>
Returns Ok
| 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 editable username of the current user.
|
SetUsername(java.lang.String username)
Creates a function, which changes the editable username of the current user.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic 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. The username can't be completely removed if there is another active or disabled username.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object