Data about the represents a video file
OptionalcoverAvailable sizes of the cover of the video in the message
Duration of the video in seconds as defined by sender
Video height as defined by sender
The unique identifier for this file
OptionalmimeMIME type of the file as defined by sender
OptionalnameOriginal filename as defined by sender
The path to the file on the Telegram server, if available
The size of the file in bytes, if available
OptionalstartedTimestamp in seconds from which the video will play in the message
OptionalthumbnailVideo thumbnail
The unique identifier for this file, which is supposed to be consistent across different bots
Video width as defined by sender
The client that instantiated this
Date the video was sent. Timestamp in seconds from which the video will play in the message
Gets the URL to access the file on the Telegram server.
Protected_cloneProtected_patchProtected_updateFlatten an object. Any properties that are collections will get converted to an array of keys.
OptionalpropsRecursive: booleanOptional. If true, calls toJSON method on nested objects.
Optional. Specific properties to include/exclude, or rename.
Flattened object.
Writes the file to the specified path.
The path where the file should be written.
OptionalwriteType: "promise"The type of write operation.
Optionaloptions: { encoding?: BufferEncoding; flag?: string; signal?: AbortSignal }Additional options for writing the file.
A promise that resolves when the file has been written.
Writes the file to the specified path.
The path where the file should be written.
The type of write operation.
Optionaloptions: {Additional options for writing the file.
A promise that resolves when the file has been written.
Writes the file to the specified path.
The path where the file should be written.
OptionalwriteType: "stream" | "promise"The type of write operation.
Optionaloptions: undefinedAdditional options for writing the file.
A promise that resolves when the file has been written.
The client that instantiated this