TgKit library and website are still in early development!

ChatMemberPromoteOptions Interface

Properties

canChangeInfo boolean

Pass *true* if the administrator can change chat title, photo and other settings

See the code

canDeleteMessages boolean

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

See the code

canEditMessages boolean

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

See the code

canInviteUsers boolean

Pass *true* if the administrator can invite new users to the chat

See the code

canManageChat boolean

Pass *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

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

See the code

canManageVideoChats boolean

Pass *true* if the administrator can manage video chats

See the code

canPinMessages boolean

Pass *true* if the administrator can pin messages, supergroups only

See the code

canPostMessages boolean

Pass *true* if the administrator can create channel posts, channels only

See the code

canPromoteMembers boolean

Pass *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 him)

See the code

canRestrictMembers boolean

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

See the code

isAnonymous boolean

Pass *true* if the administrator's presence in the chat is hidden

See the code