PassportFile

@Serializable
data class PassportFile(val fileId: FileId, val fileUniqueId: TgFileUniqueId, val uploadingDate: TelegramDate, val fileSize: Long? = null) : TelegramMediaFile

This object represents a file uploaded to Telegram Passport. Currently all Telegram Passport files are in JPEG format when decrypted and don't exceed 10MB.

Constructors

Link copied to clipboard
constructor(fileId: FileId, fileUniqueId: TgFileUniqueId, uploadingDate: TelegramDate, fileSize: Long? = null)

Properties

Link copied to clipboard
@SerialName(value = "file_id")
open override val fileId: FileId
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 = "file_date")
val uploadingDate: TelegramDate

Functions

Link copied to clipboard