class PhotoSize

This object represents one size of a photo or a file / sticker thumbnail.

Methods

__construct(string $file_id, string $file_unique_id, int $width, int $height, int|null $file_size = null)

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
getWidth()

Photo width.

int
getHeight()

Photo height.

int|null
getFileSize()

Optional. File size in bytes.

Details

at line 17
__construct(string $file_id, string $file_unique_id, int $width, int $height, int|null $file_size = null)

No description

Parameters

string $file_id
string $file_unique_id
int $width
int $height
int|null $file_size

at line 29
string getFileId()

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

Return Value

string

at line 37
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 45
int getWidth()

Photo width.

Return Value

int

at line 53
int getHeight()

Photo height.

Return Value

int

at line 61
int|null getFileSize()

Optional. File size in bytes.

Return Value

int|null