File

data class File(val content: AttachmentContent, val format: String, val mimeType: String, val fileName: String? = null) : Attachment(source)

Other types of file attachments. E.g. pdf, md, txt.

Constructors

Link copied to clipboard
constructor(content: AttachmentContent, format: String, mimeType: String, fileName: String? = null)

Properties

Link copied to clipboard
open override val content: AttachmentContent

Attachment content.

Link copied to clipboard
open override val fileName: String? = null

Optional file name of the attachment file.

Link copied to clipboard
open override val format: String

File format (usually file extension) of the attachment file. E.g. jpg, png, mp4, pdf.

Link copied to clipboard
open override val mimeType: String

MIME type of the attachment E.g. image/jpg, video/mp4