AttachmentMessage

data class AttachmentMessage(val file: File, val captionText: String? = null) : AttachmentMessageBody

Represents an attachment message.

Throws

if the file does not exist or is not readable.

Constructors

Link copied to clipboard
constructor(file: File, captionText: String? = null)

Properties

Link copied to clipboard
val captionText: String? = null

The caption text (optional).

Link copied to clipboard
open override val elementText: ElementText

The text of the message body

Link copied to clipboard
open override val elementType: ElementType

The type of the body element such as text

Link copied to clipboard
open override val file: File

The file to be attached. Must exist and be readable.

Link copied to clipboard
open override val richMediaPayload: RichMediaPayload? = null

The rich-media payload

Link copied to clipboard