TgKit library and website are still in early development!

ChatMemberAdministratorPermissions Interface

Properties

canChangeInfo boolean

If the administrator can change the chat title, photo and other settings

See the code

canDeleteMessages boolean

If the administrator can delete messages of other users

See the code

canEditMessages boolean

If the administrator can edit messages of other users and can pin messages, channels only

See the code

canInviteUsers boolean

If the user is allowed to invite new users to the chat

See the code

canManageChat boolean

If the administrator can access the chat event log, chat statistics, message statistics in channels, see channel members, see anonymous administrators in supergroups and ignore slow mode. Implied by any other administrator privilege

See the code

canManageTopics boolean

*true*, if the user is allowed to create, rename, close, and reopen forum topics; supergroups only

See the code

canManageVoiceChats boolean

If the administrator can manage video chats

See the code

canPinMessages boolean

If the user is allowed to pin messages; groups and supergroups only

See the code

canPostMessages boolean

If the administrator can post in the channel, channels only

See the code

canPromoteMembers boolean

If the administrator can add new administrators with a subset of their own privileges or demote administrators that he has promoted, directly or indirectly (promoted by administrators that were appointed by the user)

See the code

canRestrictMembers boolean

If the administrator can restrict, ban or unban chat members

See the code