Optional
media: RawMessageMediaDocumentReadonly
attrOptional
Readonly
dcDC ID of the file, when available
Optional
Readonly
fileFile size in bytes, when available
Readonly
locationLocation of the file.
Either a TL object declaring remote file location, a Buffer containing actual file content (for stripped thumbnails and vector previews), or a function that will return either of those.
When a function is passed, it will be lazily resolved the first time downloading the file.
Optional
Readonly
mediaReadonly
rawReadonly
typeType of the media (for use in a tagged union)
Date the document was sent
Video duration in seconds.
0
for legacy GIFs
Get TDLib and Bot API compatible File ID representing this document.
Original file name, extracted from the document attributes.
Whether this video is hidden with a spoiler
Video height in pixels
Input document TL object generated from this object, to be used with methods that use it
Input media TL object generated from this object, to be used inside InputMediaLike and TelegramClient.sendMedia
Whether this video is an animated GIF (represented either by actual GIF or a silent MP4 video)
Whether this video is a legacy GIF (i.e. its MIME is image/gif
)
Whether this video is a round video message (aka video note)
File MIME type, as defined by the sender.
For self-destructing videos, TTL in seconds
Get a unique File ID representing this document.
Video width in pixels
Protected
_fileGet a thumbnail by its type.
Thumbnail types are described in the Telegram docs, and are also available as static members of Thumbnail for convenience.
Thumbnail type
A video, round video message or GIF animation.
Note: Legacy GIF animations are also wrapped with this class.