Package org.drinkless.tdlib
Class TdApi.CommunityAdministratorRights
java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.CommunityAdministratorRights
- Enclosing class:
- TdApi
Describes rights of the administrator in a community.
-
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanTrue, if the administrator can ban, or unban community members.booleanTrue, if the administrator can change the community name, photo, and other settings.booleanTrue, if the user can change the chats added to the community.booleanTrue, if the user is an administrator.booleanTrue, 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 intIdentifier uniquely determining type of the object. -
Constructor Summary
ConstructorsConstructorDescriptionDescribes 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 TypeMethodDescriptionintReturns an identifier uniquely determining type of the object.Methods inherited from class org.drinkless.tdlib.TdApi.Object
toString
-
Field Details
-
canManageCommunity
public boolean canManageCommunityTrue, if the user is an administrator. Implied by any other privilege. -
canChangeInfo
public boolean canChangeInfoTrue, if the administrator can change the community name, photo, and other settings. -
canEditChatList
public boolean canEditChatListTrue, if the user can change the chats added to the community. -
canPromoteMembers
public boolean canPromoteMembersTrue, 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 canBanMembersTrue, if the administrator can ban, or unban community members. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier 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.ObjectReturns an identifier uniquely determining type of the object.- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-