ChatPermissions

@Serializable
data class ChatPermissions(var canSendMessages: Boolean? = null, var canSendAudios: Boolean? = null, var canSendDocuments: Boolean? = null, var canSendPhotos: Boolean? = null, var canSendVideos: Boolean? = null, var canSendVideoNotes: Boolean? = null, var canSendVoiceNotes: Boolean? = null, var canSendPolls: Boolean? = null, var canSendOtherMessages: Boolean? = null, var canAddWebPagePreviews: Boolean? = null, var canChangeInfo: Boolean? = null, var canInviteUsers: Boolean? = null, var canPinMessages: Boolean? = null, var canManageTopics: Boolean? = null)

Describes actions that a non-administrator user is allowed to take in a chat.

Api reference

Constructors

Link copied to clipboard
constructor(canSendMessages: Boolean? = null, canSendAudios: Boolean? = null, canSendDocuments: Boolean? = null, canSendPhotos: Boolean? = null, canSendVideos: Boolean? = null, canSendVideoNotes: Boolean? = null, canSendVoiceNotes: Boolean? = null, canSendPolls: Boolean? = null, canSendOtherMessages: Boolean? = null, canAddWebPagePreviews: Boolean? = null, canChangeInfo: Boolean? = null, canInviteUsers: Boolean? = null, canPinMessages: Boolean? = null, canManageTopics: Boolean? = null)

Properties

Link copied to clipboard

Optional. True, if the user is allowed to add web page previews to their messages

Link copied to clipboard

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

Link copied to clipboard

Optional. True, if the user is allowed to invite new users to the chat

Link copied to clipboard

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

Link copied to clipboard

Optional. True, if the user is allowed to pin messages. Ignored in public supergroups

Link copied to clipboard

Optional. True, if the user is allowed to send audios

Link copied to clipboard

Optional. True, if the user is allowed to send documents

Link copied to clipboard

Optional. True, if the user is allowed to send text messages, contacts, giveaways, giveaway winners, invoices, locations and venues

Link copied to clipboard

Optional. True, if the user is allowed to send animations, games, stickers and use inline bots

Link copied to clipboard

Optional. True, if the user is allowed to send photos

Link copied to clipboard

Optional. True, if the user is allowed to send polls

Link copied to clipboard

Optional. True, if the user is allowed to send video notes

Link copied to clipboard

Optional. True, if the user is allowed to send videos

Link copied to clipboard

Optional. True, if the user is allowed to send voice notes