DocumentFile

@Serializable
data class DocumentFile(val fileId: FileId, val fileUniqueId: TgFileUniqueId, val fileSize: Long? = null, val thumbnail: PhotoSize? = null, val mimeType: MimeType? = null, val fileName: String? = null) : TelegramMediaFile, MimedMediaFile, ThumbedMediaFile, CustomNamedMediaFile, MediaContentVariant

Constructors

Link copied to clipboard
constructor(fileId: FileId, fileUniqueId: TgFileUniqueId, fileSize: Long? = null, thumbnail: PhotoSize? = null, mimeType: MimeType? = null, fileName: String? = null)

Properties

Link copied to clipboard
@SerialName(value = "file_id")
open override val fileId: FileId
Link copied to clipboard
@SerialName(value = "file_name")
open override val fileName: String? = null
Link copied to clipboard
@SerialName(value = "file_size")
open override val fileSize: Long? = null
Link copied to clipboard
@SerialName(value = "file_unique_id")
open override val fileUniqueId: TgFileUniqueId
Link copied to clipboard
@SerialName(value = "mime_type")
open override val mimeType: MimeType? = null
Link copied to clipboard
open override val thumbnail: PhotoSize? = null

Functions

Link copied to clipboard