Skip to main content

ChatMessageAttachment

A type representing a chat message attachment. ChatMessageAttachment<Payload> is an immutable snapshot of message attachment at the given time.

@dynamicMemberLookup
public struct ChatMessageAttachment<Payload>

Properties

id

The attachment identifier.

public let id: AttachmentId

type

The attachment type.

public let type: AttachmentType

payload

The attachment payload.

public var payload: Payload

uploadingState

The uploading state of the attachment.

public let uploadingState: AttachmentUploadingState?

Reflects uploading progress for local attachments that require file uploading. Is nil for local attachments that don't need to be uploaded.

Becomes nil when the message with the current attachment is sent.

Did you find this page helpful?