PassportFile

data class PassportFile(file_id: String, file_unique_id: String, file_size: Long, file_date: Long) : TelegramModel

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

PassportFile
Link copied to clipboard
fun PassportFile(file_id: String, file_unique_id: String, file_size: Long, file_date: Long)
Creates a PassportFile.

Properties

file_date
Link copied to clipboard
val file_date: Long
Unix time when the file was uploaded
file_id
Link copied to clipboard
val file_id: String
Identifier for this file, which can be used to download or reuse the file
file_size
Link copied to clipboard
val file_size: Long
File size
file_unique_id
Link copied to clipboard
val file_unique_id: String
Unique identifier for this file, which is supposed to be the same over time and for different bots.