ChatAdministratorRights

The rights of a chat administrator.

Properties

isAnonymous: boolean

Whether the admininistrator’s presence in the chat is hidden.

canManageChat: boolean

Whether the administrator can access the chat event log, chat statistics, message statistics in channels, see channel members, see anonymous administrators in supergroups and surpass slow mode.

canDeleteMessages: boolean

Whether the administrator can delete messages of other users.

canManageVideoChats: boolean

Whether the administrator can manage video chats.

canRestrictMembers: boolean

Whether the administrator can restrict, ban or unban chat members.

canPromoteMembers: boolean

Whether the administrator can promote regular members to admininistrators.

canChangeInfo: boolean

Whether the administrator can change the name of the chat, its photo, description and some other settings.

canInviteUsers: boolean

Whether the administrator can invite users to the chat.

canPostMessages?: boolean

Whether the administrator can make posts in the channel. Only available for channels.

canEditMessages?: boolean

Whether the administrator can pin posts and edit posts they didn’t send. Only available for channels.

canPinMessages?: boolean

Whether the administrator can pin messages. Only available for groups and supergroups.

canManageTopics?: boolean

Whether the administrator can manage topics. Only available for supergroups.