Audio

data class Audio(val content: AttachmentContent, val format: String, val mimeType: String = "audio/", val fileName: String? = null) : Attachment(source)

Audio attachment (mp3, wav, etc.).

Constructors

Link copied to clipboard
constructor(content: AttachmentContent, format: String, mimeType: String = "audio/", 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