View Source ExTDLib.Object.LocalFile (ExTDLib v0.0.4)

Represents a local file.

NameTypeDescription
pathstringLocal path to the locally available file part; may be empty.
can_be_downloadedboolTrue, if it is possible to download or generate the file.
can_be_deletedboolTrue, if the file can be deleted.
is_downloading_activeboolTrue, if the file is currently being downloaded (or a local copy is being generated by some other means).
is_downloading_completedboolTrue, if the local copy is fully available.
download_offsetstringDownload will be started from this offset. downloaded_prefix_size is calculated from this offset.
downloaded_prefix_sizestringIf is_downloading_completed is false, then only some prefix of the file starting from download_offset is ready to be read. downloaded_prefix_size is the size of that prefix in bytes.
downloaded_sizestringTotal downloaded file size, in bytes. Can be used only for calculating download progress. The actual file size may be bigger, and some parts of it may contain garbage.

More details on telegram's documentation.