PassportFile
class PassportFile
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.
Methods
No description
Identifier for this file, which can be used to download or reuse the file.
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.
File size in bytes.
Unix time when the file was uploaded.
Details
at line 16
__construct(string $file_id, string $file_unique_id, int $file_size, int $file_date)
No description
at line 27
string
getFileId()
Identifier for this file, which can be used to download or reuse the file.
at line 35
string
getFileUniqueId()
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.
at line 43
int
getFileSize()
File size in bytes.
at line 51
int
getFileDate()
Unix time when the file was uploaded.