Optional
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.
Readonly
rawReadonly
typeType of the media (for use in a tagged union)
Date the document was sent
Get TDLib and Bot API compatible File ID representing this document.
Original file name, extracted from the document attributes.
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
File MIME type, as defined by the sender.
Get a unique File ID representing this document.
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 generic file.
This does not include audios, videos, voices etc. and only used for documents without any special attributes.