JsonAttachment

data class JsonAttachment(contentType: String?, id: String?, size: Int?, storedFilename: String?, filename: String?, customFilename: String?, caption: String?, width: Int?, height: Int?, voiceNote: Boolean?, key: String?, digest: String?, blurhash: String?)

represents a file attached to a message. When sending, only filename is required.

Constructors

Link copied to clipboard
fun JsonAttachment(contentType: String? = null, id: String? = null, size: Int? = null, storedFilename: String? = null, filename: String? = null, customFilename: String? = null, caption: String? = null, width: Int? = null, height: Int? = null, voiceNote: Boolean? = null, key: String? = null, digest: String? = null, blurhash: String? = null)

Properties

Link copied to clipboard
val blurhash: String? = null
Link copied to clipboard
val caption: String? = null
Link copied to clipboard
val contentType: String? = null
Link copied to clipboard
val customFilename: String? = null

the original name of the file

Link copied to clipboard
val digest: String? = null
Link copied to clipboard
val filename: String? = null

when sending, the path to the local file to upload

Link copied to clipboard
val height: Int? = null
Link copied to clipboard
val id: String? = null
Link copied to clipboard
val key: String? = null
Link copied to clipboard
val size: Int? = null
Link copied to clipboard
val storedFilename: String? = null

when receiving, the path that file has been downloaded to

Link copied to clipboard
val voiceNote: Boolean? = null
Link copied to clipboard
val width: Int? = null