Granular

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

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)

Properties

Link copied to clipboard
@SerialName(value = "can_add_web_page_previews")
open override val canAddWebPagePreviews: Boolean? = null
Link copied to clipboard
@SerialName(value = "can_change_info")
open override val canChangeInfo: Boolean? = null
Link copied to clipboard
@SerialName(value = "can_invite_users")
open override val canInviteUsers: Boolean? = null
Link copied to clipboard
@SerialName(value = "can_pin_messages")
open override val canPinMessages: Boolean? = null
Link copied to clipboard
@SerialName(value = "can_send_audios")
open override val canSendAudios: Boolean? = null
Link copied to clipboard
@SerialName(value = "can_send_documents")
open override val canSendDocuments: Boolean? = null
Link copied to clipboard
open val canSendGifs: Boolean?
Link copied to clipboard
@SerialName(value = "can_send_messages")
open override val canSendMessages: Boolean? = null
Link copied to clipboard
@SerialName(value = "can_send_other_messages")
open override val canSendOtherMessages: Boolean? = null
Link copied to clipboard
@SerialName(value = "can_send_photos")
open override val canSendPhotos: Boolean? = null
Link copied to clipboard
@SerialName(value = "can_send_polls")
open override val canSendPolls: Boolean? = null
Link copied to clipboard
Link copied to clipboard
@SerialName(value = "can_send_video_notes")
open override val canSendVideoNotes: Boolean? = null
Link copied to clipboard
@SerialName(value = "can_send_videos")
open override val canSendVideos: Boolean? = null
Link copied to clipboard
@SerialName(value = "can_send_voice_notes")
open override val canSendVoiceNotes: Boolean? = null
Link copied to clipboard
@Transient
open override val isGranular: Boolean

Functions

Link copied to clipboard
open fun copyCommon(canSendPolls: Boolean? = this.canSendPolls, canSendOtherMessages: Boolean? = this.canSendOtherMessages, canAddWebPagePreviews: Boolean? = this.canAddWebPagePreviews, canChangeInfo: Boolean? = this.canChangeInfo, canInviteUsers: Boolean? = this.canInviteUsers, canPinMessages: Boolean? = this.canPinMessages): ChatPermissions

Copying current instance as ChatPermissions, but realizations of this interface may differently override this method

Link copied to clipboard
open fun copyGranular(canSendMessages: Boolean? = this.canSendMessages, canSendAudios: Boolean? = this.canSendAudios, canSendDocuments: Boolean? = this.canSendDocuments, canSendPhotos: Boolean? = this.canSendPhotos, canSendVideos: Boolean? = this.canSendVideos, canSendVideoNotes: Boolean? = this.canSendVideoNotes, canSendVoiceNotes: Boolean? = this.canSendVoiceNotes, canSendPolls: Boolean? = this.canSendPolls, canSendOtherMessages: Boolean? = this.canSendOtherMessages, canAddWebPagePreviews: Boolean? = this.canAddWebPagePreviews, canChangeInfo: Boolean? = this.canChangeInfo, canInviteUsers: Boolean? = this.canInviteUsers, canPinMessages: Boolean? = this.canPinMessages): ChatPermissions

Copying current instance as ChatPermissions, but realizations of this interface may differently override this method