TgKit library and website are still in early development!

ChatPermissions Interface

Properties

canAddWebPagePreviews boolean

*true*, if the user is allowed to add web page previews to their messages, implies canSendMediaMessages

See the code

canChangeInfo boolean

*true*, if the user is allowed to change the chat title, photo and other settings. Ignored in public supergroups

See the code

canInviteUsers boolean

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

See the code

canManageTopics boolean

*true*, if the user is allowed to create forum topics. If omitted defaults to the value of can_pin_messages

See the code

canPinMessages boolean

*true*, if the user is allowed to pin messages. Ignored in public supergroups

See the code

canSendMediaMessages boolean

*true*, if the user is allowed to send audios, documents, photos, videos, video notes and voice notes, implies canSendMessages

See the code

canSendMessages boolean

*true*, if the user is allowed to send text messages, contacts, locations and venues

See the code

canSendOtherMessages boolean

*true*, if the user is allowed to send animations, games, stickers and use inline bots, implies canSendMediaMessages

See the code

canSendPolls boolean

*true*, if the user is allowed to send polls, implies canSendMessages

See the code