PassportFile

@Serializable
data class PassportFile(val fileId: String, val fileUniqueId: String, val fileSize: Int, val fileDate: Instant)

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.

Api reference

Constructors

Link copied to clipboard
constructor(fileId: String, fileUniqueId: String, fileSize: Int, fileDate: Instant)

Properties

Link copied to clipboard
@Serializable(with = InstantSerializer::class)
val fileDate: Instant

Unix time when the file was uploaded

Link copied to clipboard

Identifier for this file, which can be used to download or reuse the file

Link copied to clipboard

File size in bytes

Link copied to clipboard

Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file.