Common

@Serializable
data class Common(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(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
@Transient
open override val canSendAudios: Boolean?
Link copied to clipboard
@Transient
open override val canSendDocuments: Boolean?
Link copied to clipboard
open val canSendGifs: Boolean?
Link copied to clipboard
@Transient
open override val canSendMessages: Boolean?
Link copied to clipboard
@SerialName(value = "can_send_other_messages")
open override val canSendOtherMessages: Boolean? = null
Link copied to clipboard
@Transient
open override val canSendPhotos: Boolean?
Link copied to clipboard
@SerialName(value = "can_send_polls")
open override val canSendPolls: Boolean? = null
Link copied to clipboard
Link copied to clipboard
@Transient
open override val canSendVideoNotes: Boolean?
Link copied to clipboard
@Transient
open override val canSendVideos: Boolean?
Link copied to clipboard
@Transient
open override val canSendVoiceNotes: Boolean?
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