public static class TdApi.ChatMemberStatusAdministrator extends TdApi.ChatMemberStatus
TdApi.ChatMemberStatus.Constructors
Modifier and Type | Field and Description |
---|---|
boolean |
canBeEdited
True, if the current user can edit the administrator privileges for the called user.
|
boolean |
canChangeInfo
True, if the administrator can change the chat title, photo, and other settings.
|
boolean |
canDeleteMessages
True, if the administrator can delete messages of other users.
|
boolean |
canEditMessages
True, if the administrator can edit messages of other users and pin messages; applicable to channels only.
|
boolean |
canInviteUsers
True, if the administrator can invite new users to the chat.
|
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.
|
boolean |
canManageVideoChats
True, if the administrator can manage video chats.
|
boolean |
canPinMessages
True, if the administrator can pin messages; applicable to basic groups and supergroups only.
|
boolean |
canPostMessages
True, if the administrator can create channel posts; applicable to channels only.
|
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.
|
boolean |
canRestrictMembers
True, if the administrator can restrict, ban, or unban chat members; always true for channels.
|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
java.lang.String |
customTitle
A custom title of the administrator; 0-16 characters without emojis; applicable to supergroups only.
|
boolean |
isAnonymous
True, if the administrator isn't shown in the chat member list and sends messages anonymously; applicable to supergroups only.
|
Constructor and Description |
---|
ChatMemberStatusAdministrator()
The user is a member of the chat and has some additional privileges.
|
ChatMemberStatusAdministrator(java.lang.String customTitle,
boolean canBeEdited,
boolean canManageChat,
boolean canChangeInfo,
boolean canPostMessages,
boolean canEditMessages,
boolean canDeleteMessages,
boolean canInviteUsers,
boolean canRestrictMembers,
boolean canPinMessages,
boolean canPromoteMembers,
boolean canManageVideoChats,
boolean isAnonymous)
The user is a member of the chat and has some additional privileges.
|
Modifier and Type | Method and Description |
---|---|
int |
getConstructor() |
toString
public java.lang.String customTitle
public boolean canBeEdited
public boolean canManageChat
public boolean canChangeInfo
public boolean canPostMessages
public boolean canEditMessages
public boolean canDeleteMessages
public boolean canInviteUsers
public boolean canRestrictMembers
public boolean canPinMessages
public boolean canPromoteMembers
public boolean canManageVideoChats
public boolean isAnonymous
public static final int CONSTRUCTOR
public ChatMemberStatusAdministrator()
public ChatMemberStatusAdministrator(java.lang.String customTitle, boolean canBeEdited, boolean canManageChat, boolean canChangeInfo, boolean canPostMessages, boolean canEditMessages, boolean canDeleteMessages, boolean canInviteUsers, boolean canRestrictMembers, boolean canPinMessages, boolean canPromoteMembers, boolean canManageVideoChats, boolean isAnonymous)
customTitle
- A custom title of the administrator; 0-16 characters without emojis; applicable to supergroups only.canBeEdited
- True, if the current user can edit the administrator privileges for the called user.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
- True, if the administrator can change the chat title, photo, and other settings.canPostMessages
- True, if the administrator can create channel posts; 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; always true for channels.canPinMessages
- True, if the administrator can pin messages; applicable to basic groups and 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.isAnonymous
- True, if the administrator isn't shown in the chat member list and sends messages anonymously; applicable to supergroups only.public int getConstructor()
getConstructor
in class TdApi.ChatMemberStatus