class VideoNote

This object represents a video message (available in Telegram apps as of v.4.0).

Methods

__construct(string $file_id, string $file_unique_id, int $length, int $duration, PhotoSize|null $thumb = null, 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
getLength()

Video width and height (diameter of the video message) as defined by sender.

int
getDuration()

Duration of the video in seconds as defined by sender.

PhotoSize|null
getThumb()

Optional. Video thumbnail.

int|null
getFileSize()

Optional. File size in bytes.

Details

at line 18
__construct(string $file_id, string $file_unique_id, int $length, int $duration, PhotoSize|null $thumb = null, int|null $file_size = null)

No description

Parameters

string $file_id
string $file_unique_id
int $length
int $duration
PhotoSize|null $thumb
int|null $file_size

at line 31
string getFileId()

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

Return Value

string

at line 39
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 47
int getLength()

Video width and height (diameter of the video message) as defined by sender.

Return Value

int

at line 55
int getDuration()

Duration of the video in seconds as defined by sender.

Return Value

int

at line 63
PhotoSize|null getThumb()

Optional. Video thumbnail.

Return Value

PhotoSize|null

at line 71
int|null getFileSize()

Optional. File size in bytes.

Return Value

int|null