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

__construct(string $file_id, string $file_unique_id, int $file_size, int $file_date)

No description

string
getFileId()

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

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.

int
getFileSize()

File size in bytes.

int
getFileDate()

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

Parameters

string $file_id
string $file_unique_id
int $file_size
int $file_date

at line 27
string getFileId()

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

Return Value

string

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.

Return Value

string

at line 43
int getFileSize()

File size in bytes.

Return Value

int

at line 51
int getFileDate()

Unix time when the file was uploaded.

Return Value

int