Companion

object Companion

Creates attachments.

Functions

Link copied to clipboard
fun of(bytes: ByteArray, mediaType: String): Attachment.Data

Returns the file with the bytes bytes and the media type mediaType.

Link copied to clipboard
fun url(url: String, mediaType: String): Attachment.Url

Returns the file at url, with the media type mediaType.