java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.ChatMemberStatus
it.tdlight.jni.TdApi.ChatMemberStatusAdministrator
- Enclosing class:
- TdApi
The user is a member of the 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
FieldsModifier and TypeFieldDescriptionboolean
True, if the current user can edit the administrator privileges for the called user.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 voice 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
A custom title of the administrator; 0-16 characters without emojis; applicable to supergroups only.boolean
True, if the administrator isn't shown in the chat member list and sends messages anonymously; applicable to supergroups only. -
Constructor Summary
ConstructorsConstructorDescriptionThe user is a member of the chat and has some additional privileges.The user is a member of the chat and has some additional privileges.ChatMemberStatusAdministrator
(String customTitle, boolean canBeEdited, boolean canManageChat, 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 the chat and has some additional privileges. -
Method Summary
Methods inherited from class it.tdlight.jni.TdApi.Object
serialize, toString
-
Field Details
-
customTitle
A custom title of the administrator; 0-16 characters without emojis; applicable to supergroups only. -
canBeEdited
public boolean canBeEditedTrue, if the current user can edit the administrator privileges for the called user. -
canManageChat
public boolean canManageChatTrue, 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 canChangeInfoTrue, if the administrator can change the chat title, photo, and other settings. -
canPostMessages
public boolean canPostMessagesTrue, if the administrator can create channel posts; 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; always true for channels. -
canPinMessages
public boolean canPinMessagesTrue, if the administrator can pin messages; applicable to basic groups and 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. -
canManageVoiceChats
public boolean canManageVoiceChatsTrue, if the administrator can manage voice chats. -
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 CONSTRUCTOR- See Also:
-
-
Constructor Details
-
ChatMemberStatusAdministrator
public ChatMemberStatusAdministrator()The user is a member of the 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 canManageChat, 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 the 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.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.canManageVoiceChats
- boolean True, if the administrator can manage voice chats.isAnonymous
- boolean True, if the administrator isn't shown in the chat member list and sends messages anonymously; applicable to supergroups only.
-
ChatMemberStatusAdministrator
The user is a member of the 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.- Throws:
IOException
-
-
Method Details
-
getConstructor
public int getConstructor()- Specified by:
getConstructor
in classTdApi.Object
-
serialize
- Specified by:
serialize
in classTdApi.Object
- Throws:
IOException
-
equals
-
hashCode
public int hashCode()
-