public static class TdApi.Usernames extends TdApi.Object
| Modifier and Type | Field and Description |
|---|---|
java.lang.String[] |
activeUsernames
List of active usernames; the first one must be shown as the primary username.
|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
java.lang.String[] |
disabledUsernames
List of currently disabled usernames; the username can be activated with toggleUsernameIsActive, toggleBotUsernameIsActive, or toggleSupergroupUsernameIsActive.
|
java.lang.String |
editableUsername
The active username, which can be changed with setUsername or setSupergroupUsername.
|
| Constructor and Description |
|---|
Usernames()
Describes usernames assigned to a user, a supergroup, or a channel.
|
Usernames(java.lang.String[] activeUsernames,
java.lang.String[] disabledUsernames,
java.lang.String editableUsername)
Describes usernames assigned to a user, a supergroup, or a channel.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic java.lang.String[] activeUsernames
public java.lang.String[] disabledUsernames
public java.lang.String editableUsername
public static final int CONSTRUCTOR
public Usernames()
public Usernames(java.lang.String[] activeUsernames,
java.lang.String[] disabledUsernames,
java.lang.String editableUsername)
activeUsernames - List of active usernames; the first one must be shown as the primary username. The order of active usernames can be changed with reorderActiveUsernames, reorderBotActiveUsernames or reorderSupergroupActiveUsernames.disabledUsernames - List of currently disabled usernames; the username can be activated with toggleUsernameIsActive, toggleBotUsernameIsActive, or toggleSupergroupUsernameIsActive.editableUsername - The active username, which can be changed with setUsername or setSupergroupUsername. Information about other active usernames can be received using getCollectibleItemInfo.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object