Module tdlight.api

Class TdApi.ChatAdministratorRights

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

public static final class TdApi.ChatAdministratorRights extends TdApi.Object
Describes rights of the administrator.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    boolean
    True, if the administrator can change the chat title, photo, and other settings.
    boolean
    True, if the administrator can delete messages of other users.
    boolean
    True, if the administrator can edit messages of other users and pin messages; applicable to channels only.
    boolean
    True, if the administrator can invite new users to the chat.
    boolean
    True, if the administrator can get chat event log, get chat statistics, get message statistics in channels, get channel members, see anonymous administrators in supergroups and ignore slow mode.
    boolean
    True, if the administrator can manage video chats.
    boolean
    True, if the administrator can pin messages; applicable to basic groups and supergroups only.
    boolean
    True, if the administrator can create channel posts; applicable to channels only.
    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.
    boolean
    True, if the administrator can restrict, ban, or unban chat members; always true for channels.
    static final int
     
    boolean
    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
    Describes rights of the administrator.
    ChatAdministratorRights(boolean canManageChat, boolean canChangeInfo, boolean canPostMessages, boolean canEditMessages, boolean canDeleteMessages, boolean canInviteUsers, boolean canRestrictMembers, boolean canPinMessages, boolean canPromoteMembers, boolean canManageVideoChats, boolean isAnonymous)
    Describes rights of the administrator.
    Describes rights of the administrator.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    int
     
    int
     
    void
     

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

    serialize, toString

    Methods inherited from class java.lang.Object

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

    • canManageChat

      public boolean canManageChat
      True, if the administrator can get chat event log, get chat statistics, get message statistics in channels, get channel members, see anonymous administrators in supergroups and ignore slow mode. Implied by any other privilege; applicable to supergroups and channels only.
    • 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; always true for channels.
    • canPinMessages

      public boolean canPinMessages
      True, if the administrator can pin messages; applicable to basic groups and supergroups 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.
    • canManageVideoChats

      public boolean canManageVideoChats
      True, if the administrator can manage video chats.
    • 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:
  • Constructor Details

    • ChatAdministratorRights

      public ChatAdministratorRights()
      Describes rights of the administrator.
    • ChatAdministratorRights

      public ChatAdministratorRights(boolean canManageChat, boolean canChangeInfo, boolean canPostMessages, boolean canEditMessages, boolean canDeleteMessages, boolean canInviteUsers, boolean canRestrictMembers, boolean canPinMessages, boolean canPromoteMembers, boolean canManageVideoChats, boolean isAnonymous)
      Describes rights of the administrator.
      Parameters:
      canManageChat - boolean True, if the administrator can get chat event log, get chat statistics, get message statistics in channels, get channel members, see anonymous administrators in supergroups and ignore slow mode. Implied by any other privilege; applicable to supergroups and channels only.
      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; always true for channels.
      canPinMessages - boolean True, if the administrator can pin messages; applicable to basic groups and supergroups 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.
      canManageVideoChats - boolean True, if the administrator can manage video chats.
      isAnonymous - boolean True, if the administrator isn't shown in the chat member list and sends messages anonymously; applicable to supergroups only.
    • ChatAdministratorRights

      public ChatAdministratorRights(DataInput input) throws IOException
      Describes rights of the administrator.
      Throws:
      IOException
  • Method Details