ReadonlyattrOptional ReadonlydcDC ID of the file, when available
Optional ReadonlyfileFile size in bytes, when available
ReadonlylocationLocation 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.
ReadonlyrawReadonlytypeType of the media (for use in a tagged union)
Date the document was sent
Duration of the voice note in seconds.
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.
Voice note's waveform
Represented with integers in range [0, 31], usually has length of 100
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
An voice note.