java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.ChatAdministratorRights
- Enclosing class:
- TdApi
Describes rights of the administrator.
-
Field Summary
Modifier and TypeFieldDescriptionboolean
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 delete stories posted by other users; applicable to channels only.boolean
True, if the administrator can edit messages of other users and pin messages; applicable to channels only.boolean
True, if the administrator can edit stories posted by other users, pin stories and access story archive; 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 boosts in channels, get channel members, report supergroup spam messages, see anonymous administrators in supergroups and ignore slow mode.boolean
True, if the administrator can manage topics; applicable to forum supergroups only.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 or view channel statistics; applicable to channels only.boolean
True, if the administrator can create new channel stories, or edit and delete posted stories; 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 or view supergroup statistics; always true for channels.static final int
Identifier uniquely determining type of the object.boolean
True, if the administrator isn't shown in the chat member list and sends messages anonymously; applicable to supergroups only. -
Constructor Summary
ConstructorDescriptionDescribes rights of the administrator.ChatAdministratorRights
(boolean canManageChat, boolean canChangeInfo, boolean canPostMessages, boolean canEditMessages, boolean canDeleteMessages, boolean canInviteUsers, boolean canRestrictMembers, boolean canPinMessages, boolean canManageTopics, boolean canPromoteMembers, boolean canManageVideoChats, boolean canPostStories, boolean canEditStories, boolean canDeleteStories, boolean isAnonymous) Describes rights of the administrator.ChatAdministratorRights
(DataInput input) Describes rights of the administrator. -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
Returns an identifier uniquely determining type of the object.int
hashCode()
void
serialize
(DataOutput output) Serialize the TDLib classMethods inherited from class it.tdlight.jni.TdApi.Object
serialize, toString
-
Field Details
-
canManageChat
public boolean canManageChatTrue, if the administrator can get chat event log, get chat boosts in channels, get channel members, report supergroup spam messages, see anonymous administrators in supergroups and ignore slow mode. Implied by any other privilege; applicable to supergroups and channels only. -
canChangeInfo
public boolean canChangeInfoTrue, if the administrator can change the chat title, photo, and other settings. -
canPostMessages
public boolean canPostMessagesTrue, if the administrator can create channel posts or view channel statistics; applicable to channels only. -
canEditMessages
public boolean canEditMessagesTrue, if the administrator can edit messages of other users and pin messages; applicable to channels only. -
canDeleteMessages
public boolean canDeleteMessagesTrue, if the administrator can delete messages of other users. -
canInviteUsers
public boolean canInviteUsersTrue, if the administrator can invite new users to the chat. -
canRestrictMembers
public boolean canRestrictMembersTrue, if the administrator can restrict, ban, or unban chat members or view supergroup statistics; always true for channels. -
canPinMessages
public boolean canPinMessagesTrue, if the administrator can pin messages; applicable to basic groups and supergroups only. -
canManageTopics
public boolean canManageTopicsTrue, if the administrator can manage topics; applicable to forum supergroups only. -
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. -
canManageVideoChats
public boolean canManageVideoChatsTrue, if the administrator can manage video chats. -
canPostStories
public boolean canPostStoriesTrue, if the administrator can create new channel stories, or edit and delete posted stories; applicable to channels only. -
canEditStories
public boolean canEditStoriesTrue, if the administrator can edit stories posted by other users, pin stories and access story archive; applicable to channels only. -
canDeleteStories
public boolean canDeleteStoriesTrue, if the administrator can delete stories posted by other users; applicable to channels only. -
isAnonymous
public boolean isAnonymousTrue, if the administrator isn't shown in the chat member list and sends messages anonymously; applicable to supergroups only. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- 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 canManageTopics, boolean canPromoteMembers, boolean canManageVideoChats, boolean canPostStories, boolean canEditStories, boolean canDeleteStories, boolean isAnonymous) Describes rights of the administrator.- Parameters:
canManageChat
- True, if the administrator can get chat event log, get chat boosts in channels, get channel members, report supergroup spam messages, see anonymous administrators in supergroups and ignore slow mode. Implied by any other privilege; applicable to supergroups and channels only.canChangeInfo
- True, if the administrator can change the chat title, photo, and other settings.canPostMessages
- True, if the administrator can create channel posts or view channel statistics; applicable to channels only.canEditMessages
- True, if the administrator can edit messages of other users and pin messages; applicable to channels only.canDeleteMessages
- True, if the administrator can delete messages of other users.canInviteUsers
- True, if the administrator can invite new users to the chat.canRestrictMembers
- True, if the administrator can restrict, ban, or unban chat members or view supergroup statistics; always true for channels.canPinMessages
- True, if the administrator can pin messages; applicable to basic groups and supergroups only.canManageTopics
- True, if the administrator can manage topics; applicable to forum supergroups only.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
- True, if the administrator can manage video chats.canPostStories
- True, if the administrator can create new channel stories, or edit and delete posted stories; applicable to channels only.canEditStories
- True, if the administrator can edit stories posted by other users, pin stories and access story archive; applicable to channels only.canDeleteStories
- True, if the administrator can delete stories posted by other users; applicable to channels only.isAnonymous
- True, if the administrator isn't shown in the chat member list and sends messages anonymously; applicable to supergroups only.
-
ChatAdministratorRights
Describes rights of the administrator.- Parameters:
input
- Serialized input- Throws:
IOException
- the deserialization failed
-
-
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 classTdApi.Object
- Returns:
- this.CONSTRUCTOR
-
serialize
Serialize the TDLib class- Specified by:
serialize
in classTdApi.Object
- Parameters:
output
- output data stream- Throws:
IOException
- the serialization failed
-
equals
-
hashCode
public int hashCode()
-