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, reorderBotActiveUsernames or reorderSupergroupActiveUsernames.
    • disabledUsernames

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

      public String editableUsername
      The active username, which can be changed with setUsername or 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, reorderBotActiveUsernames or reorderSupergroupActiveUsernames.
      disabledUsernames - String[] List of currently disabled usernames; the username can be activated with toggleUsernameIsActive, toggleBotUsernameIsActive, or toggleSupergroupUsernameIsActive.
      editableUsername - String The active username, which can be changed with setUsername or setSupergroupUsername.
    • Usernames

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