Class TdApi.ChatMemberStatusAdministrator

java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.ChatMemberStatus
it.tdlight.jni.TdApi.ChatMemberStatusAdministrator
Enclosing class:
TdApi

public static class TdApi.ChatMemberStatusAdministrator
extends TdApi.ChatMemberStatus
The user is a member of a chat and has some additional privileges. In basic groups, administrators can edit and delete messages sent by others, add new members, ban unprivileged members, and manage voice chats. In supergroups and channels, there are more detailed options for administrator privileges.
  • Field Summary

    Fields
    Modifier and Type Field Description
    boolean canBeEdited
    True, if the current user can edit the administrator privileges for the called user.
    boolean canChangeInfo
    True, if the administrator can change the chat title, photo, and other settings.
    boolean canDeleteMessages
    True, if the administrator can delete messages of other users.
    boolean canEditMessages
    True, if the administrator can edit messages of other users and pin messages; applicable to channels only.
    boolean canInviteUsers
    True, if the administrator can invite new users to the chat.
    boolean canManageVoiceChats
    True, if the administrator can manage voice chats; applicable to groups only.
    boolean canPinMessages
    True, if the administrator can pin messages; applicable to groups only.
    boolean canPostMessages
    True, if the administrator can create channel posts; applicable to channels only.
    boolean canPromoteMembers
    True, if the administrator can add new administrators with a subset of their own privileges or demote administrators that were directly or indirectly promoted by them.
    boolean canRestrictMembers
    True, if the administrator can restrict, ban, or unban chat members.
    static int CONSTRUCTOR  
    String customTitle
    A custom title of the administrator; 0-16 characters without emojis; applicable to supergroups only.
    boolean isAnonymous
    True, if the administrator isn't shown in the chat member list and sends messages anonymously; applicable to supergroups only.
  • Constructor Summary

    Constructors
    Constructor Description
    ChatMemberStatusAdministrator()
    The user is a member of a chat and has some additional privileges.
    ChatMemberStatusAdministrator​(DataInput input)  
    ChatMemberStatusAdministrator​(String customTitle, boolean canBeEdited, boolean canChangeInfo, boolean canPostMessages, boolean canEditMessages, boolean canDeleteMessages, boolean canInviteUsers, boolean canRestrictMembers, boolean canPinMessages, boolean canPromoteMembers, boolean canManageVoiceChats, boolean isAnonymous)
    The user is a member of a chat and has some additional privileges.
  • Method Summary

    Modifier and Type Method Description
    boolean equals​(Object o)  
    int getConstructor()  
    int hashCode()  
    void serialize​(DataOutputStream output)  

    Methods inherited from class it.tdlight.jni.TdApi.Object

    serialize, toString

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • customTitle

      public String customTitle
      A custom title of the administrator; 0-16 characters without emojis; applicable to supergroups only.
    • canBeEdited

      public boolean canBeEdited
      True, if the current user can edit the administrator privileges for the called user.
    • canChangeInfo

      public boolean canChangeInfo
      True, if the administrator can change the chat title, photo, and other settings.
    • canPostMessages

      public boolean canPostMessages
      True, if the administrator can create channel posts; applicable to channels only.
    • canEditMessages

      public boolean canEditMessages
      True, if the administrator can edit messages of other users and pin messages; applicable to channels only.
    • canDeleteMessages

      public boolean canDeleteMessages
      True, if the administrator can delete messages of other users.
    • canInviteUsers

      public boolean canInviteUsers
      True, if the administrator can invite new users to the chat.
    • canRestrictMembers

      public boolean canRestrictMembers
      True, if the administrator can restrict, ban, or unban chat members.
    • canPinMessages

      public boolean canPinMessages
      True, if the administrator can pin messages; applicable to groups only.
    • canPromoteMembers

      public boolean canPromoteMembers
      True, if the administrator can add new administrators with a subset of their own privileges or demote administrators that were directly or indirectly promoted by them.
    • canManageVoiceChats

      public boolean canManageVoiceChats
      True, if the administrator can manage voice chats; applicable to groups only.
    • isAnonymous

      public boolean isAnonymous
      True, if the administrator isn't shown in the chat member list and sends messages anonymously; applicable to supergroups only.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      See Also:
      Constant Field Values
  • Constructor Details

    • ChatMemberStatusAdministrator

      public ChatMemberStatusAdministrator()
      The user is a member of a chat and has some additional privileges. In basic groups, administrators can edit and delete messages sent by others, add new members, ban unprivileged members, and manage voice chats. In supergroups and channels, there are more detailed options for administrator privileges.
    • ChatMemberStatusAdministrator

      public ChatMemberStatusAdministrator​(String customTitle, boolean canBeEdited, boolean canChangeInfo, boolean canPostMessages, boolean canEditMessages, boolean canDeleteMessages, boolean canInviteUsers, boolean canRestrictMembers, boolean canPinMessages, boolean canPromoteMembers, boolean canManageVoiceChats, boolean isAnonymous)
      The user is a member of a chat and has some additional privileges. In basic groups, administrators can edit and delete messages sent by others, add new members, ban unprivileged members, and manage voice chats. In supergroups and channels, there are more detailed options for administrator privileges.
      Parameters:
      customTitle - String A custom title of the administrator; 0-16 characters without emojis; applicable to supergroups only.
      canBeEdited - boolean True, if the current user can edit the administrator privileges for the called user.
      canChangeInfo - boolean True, if the administrator can change the chat title, photo, and other settings.
      canPostMessages - boolean True, if the administrator can create channel posts; applicable to channels only.
      canEditMessages - boolean True, if the administrator can edit messages of other users and pin messages; applicable to channels only.
      canDeleteMessages - boolean True, if the administrator can delete messages of other users.
      canInviteUsers - boolean True, if the administrator can invite new users to the chat.
      canRestrictMembers - boolean True, if the administrator can restrict, ban, or unban chat members.
      canPinMessages - boolean True, if the administrator can pin messages; applicable to groups only.
      canPromoteMembers - boolean True, if the administrator can add new administrators with a subset of their own privileges or demote administrators that were directly or indirectly promoted by them.
      canManageVoiceChats - boolean True, if the administrator can manage voice chats; applicable to groups only.
      isAnonymous - boolean True, if the administrator isn't shown in the chat member list and sends messages anonymously; applicable to supergroups only.
    • ChatMemberStatusAdministrator

      public ChatMemberStatusAdministrator​(DataInput input) throws IOException
      Throws:
      IOException
  • Method Details