GramIO API Reference / @gramio/contexts/dist / VideoQuality
Class: VideoQuality
Defined in: contexts/index.d.ts:879
This object represents a video file of a specific quality.
Constructors
Constructor
new VideoQuality(
payload):VideoQuality
Defined in: contexts/index.d.ts:881
Parameters
| Parameter | Type |
|---|---|
payload | TelegramVideoQuality |
Returns
VideoQuality
Properties
| Property | Type | Defined in |
|---|---|---|
payload | TelegramVideoQuality | contexts/index.d.ts:880 |
Accessors
[toStringTag]
Get Signature
get [toStringTag]():
string
Defined in: contexts/index.d.ts:883
Returns
string
codec
Get Signature
get codec():
TelegramVideoQualityCodec
Defined in: contexts/index.d.ts:903
Codec that was used to encode the video, for example, "h264", "h265", or "av01"
Returns
fileId
Get Signature
get fileId():
string
Defined in: contexts/index.d.ts:887
Identifier for this file, which can be used to download or reuse the file
Returns
string
fileSize
Get Signature
get fileSize():
number
Defined in: contexts/index.d.ts:907
Optional. File size in bytes
Returns
number
fileUniqueId
Get Signature
get fileUniqueId():
string
Defined in: contexts/index.d.ts:891
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.
Returns
string
height
Get Signature
get height():
number
Defined in: contexts/index.d.ts:899
Video height
Returns
number
width
Get Signature
get width():
number
Defined in: contexts/index.d.ts:895
Video width
Returns
number