Class TdApi.CommunityAdministratorRights

java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.CommunityAdministratorRights
Enclosing class:
TdApi

public static class TdApi.CommunityAdministratorRights extends TdApi.Object
Describes rights of the administrator in a community.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    boolean
    True, if the administrator can ban, or unban community members.
    boolean
    True, if the administrator can change the community name, photo, and other settings.
    boolean
    True, if the user can change the chats added to the community.
    boolean
    True, if the user is an administrator.
    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.
    static final int
    Identifier uniquely determining type of the object.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Describes rights of the administrator in a community.
    CommunityAdministratorRights(boolean canManageCommunity, boolean canChangeInfo, boolean canEditChatList, boolean canPromoteMembers, boolean canBanMembers)
    Describes rights of the administrator in a community.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns an identifier uniquely determining type of the object.

    Methods inherited from class org.drinkless.tdlib.TdApi.Object

    toString

    Methods inherited from class java.lang.Object

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

    • canManageCommunity

      public boolean canManageCommunity
      True, if the user is an administrator. Implied by any other privilege.
    • canChangeInfo

      public boolean canChangeInfo
      True, if the administrator can change the community name, photo, and other settings.
    • canEditChatList

      public boolean canEditChatList
      True, if the user can change the chats added to the community.
    • 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.
    • canBanMembers

      public boolean canBanMembers
      True, if the administrator can ban, or unban community members.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      Identifier uniquely determining type of the object.
      See Also:
  • Constructor Details

    • CommunityAdministratorRights

      public CommunityAdministratorRights()
      Describes rights of the administrator in a community.
    • CommunityAdministratorRights

      public CommunityAdministratorRights(boolean canManageCommunity, boolean canChangeInfo, boolean canEditChatList, boolean canPromoteMembers, boolean canBanMembers)
      Describes rights of the administrator in a community.
      Parameters:
      canManageCommunity - True, if the user is an administrator. Implied by any other privilege.
      canChangeInfo - True, if the administrator can change the community name, photo, and other settings.
      canEditChatList - True, if the user can change the chats added to the community.
      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.
      canBanMembers - True, if the administrator can ban, or unban community members.
  • Method Details

    • getConstructor

      public int getConstructor()
      Description copied from class: TdApi.Object
      Returns an identifier uniquely determining type of the object.
      Specified by:
      getConstructor in class TdApi.Object
      Returns:
      this.CONSTRUCTOR