AttachmentsFormat

@JsonClass(generateAdapter = true)
class AttachmentsFormat @JvmOverloads constructor(val text: String?, val attachments: List<FileAsset>, val attachmentIds: List<String>? = null) : StaticContentFormat

A message containing one or more file attachments with optional accompanying text.

attachmentIds carries the opaque signed slugs produced by the v2 attachment upload leg, referenced when sending a multi-file message. It is null for received messages and for the legacy single-file send path.

Constructors

Link copied to clipboard
constructor(text: String?, attachments: List<FileAsset>, attachmentIds: List<String>? = null)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The specific format type that determines how this message content is rendered.

Link copied to clipboard
val text: String?