Module tdlight.api

Class TdApi.Usernames

java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.Usernames
Enclosing class:
TdApi

public static final class TdApi.Usernames extends TdApi.Object
Describes usernames assigned to a user, a supergroup, or a channel.
  • Field Details

    • activeUsernames

      public String[] 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 or reorderSupergroupActiveUsernames.
    • disabledUsernames

      public String[] disabledUsernames
      List of currently disabled usernames; the username can be activated with toggleUsernameIsActive/toggleSupergroupUsernameIsActive.
    • editableUsername

      public String editableUsername
      The active username, which can be changed with setUsername/setSupergroupUsername.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      See Also:
  • Constructor Details

    • Usernames

      public Usernames()
      Describes usernames assigned to a user, a supergroup, or a channel.
    • Usernames

      public Usernames(String[] activeUsernames, String[] disabledUsernames, String editableUsername)
      Describes usernames assigned to a user, a supergroup, or a channel.
      Parameters:
      activeUsernames - String[] List of active usernames; the first one must be shown as the primary username. The order of active usernames can be changed with reorderActiveUsernames or reorderSupergroupActiveUsernames.
      disabledUsernames - String[] List of currently disabled usernames; the username can be activated with toggleUsernameIsActive/toggleSupergroupUsernameIsActive.
      editableUsername - String The active username, which can be changed with setUsername/setSupergroupUsername.
    • Usernames

      public Usernames(DataInput input) throws IOException
      Describes usernames assigned to a user, a supergroup, or a channel.
      Throws:
      IOException
  • Method Details