TgKit library and website are still in early development!

ChatAdministratorRights Interface

Properties

canChangeInfo boolean

*true*, if the user is allowed to change the chat title, photo and other settings

See the code

canDeleteMessages boolean

*true*, if the administrator can delete messages of other users

See the code

canEditMessages boolean

*true*, if the administrator can edit messages of other users and can pin messages; channels only

See the code

canInviteUsers boolean

*true*, if the user is allowed to invite new users to the chat

See the code

canManageChat boolean

*true*, 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

canManageVideoChats boolean

*true*, if the administrator can manage video chats

See the code

canPinMessages boolean

*true*, if the user is allowed to pin messages; groups and supergroups only

See the code

canPostMessages boolean

*true*, if the administrator can post in the channel; channels only

See the code

canPromoteMembers boolean

*true*, 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

*true*, if the administrator can restrict, ban or unban chat members

See the code

isAnonymous boolean

*true*, if the user's presence in the chat is hidden

See the code