public static class TdApi.ChatAdministratorRights extends TdApi.Object
| Modifier and Type | Field and Description |
|---|---|
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 |
canDeleteStories
True, if the administrator can delete stories posted by other users; applicable to supergroups and channels only.
|
boolean |
canEditMessages
True, if the administrator can edit messages of other users and pin messages; applicable to channels only.
|
boolean |
canEditStories
True, if the administrator can edit stories posted by other users, post stories to the chat page, pin chat stories, and access story archive; applicable to supergroups and channels only.
|
boolean |
canInviteUsers
True, if the administrator can invite new users to the chat.
|
boolean |
canManageChat
True, if the administrator can access the chat event log, get boost list, see hidden supergroup and channel members, report supergroup spam messages and ignore slow mode.
|
boolean |
canManageTopics
True, if the administrator can create, rename, close, reopen, hide, and unhide forum topics; applicable to forum supergroups only.
|
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 or view channel statistics; applicable to channels only.
|
boolean |
canPostStories
True, if the administrator can create new chat stories, or edit and delete posted stories; applicable to supergroups and 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 or view supergroup statistics; always true for channels.
|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
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 |
|---|
ChatAdministratorRights()
Describes 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.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic 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 canManageTopics
public boolean canPromoteMembers
public boolean canManageVideoChats
public boolean canPostStories
public boolean canEditStories
public boolean canDeleteStories
public boolean isAnonymous
public static final int CONSTRUCTOR
public 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)
canManageChat - True, if the administrator can access the chat event log, get boost list, see hidden supergroup and channel members, report supergroup spam messages 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 create, rename, close, reopen, hide, and unhide forum 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 chat stories, or edit and delete posted stories; applicable to supergroups and channels only.canEditStories - True, if the administrator can edit stories posted by other users, post stories to the chat page, pin chat stories, and access story archive; applicable to supergroups and channels only.canDeleteStories - True, if the administrator can delete stories posted by other users; applicable to supergroups and channels only.isAnonymous - True, if the administrator isn't shown in the chat member list and sends messages anonymously; applicable to supergroups only.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object