TDLib v0.0.2 TDLib.Object.LocalFile View Source
Represents a local file.
Name | Type | Description |
---|---|---|
path | string | Local path to the locally available file part; may be empty. |
can_be_downloaded | bool | True, if it is possible to try to download or generate the file. |
can_be_deleted | bool | True, if the file can be deleted. |
is_downloading_active | bool | True, if the file is currently being downloaded (or a local copy is being generated by some other means). |
is_downloading_completed | bool | True, if the local copy is fully available. |
downloaded_prefix_size | number | If is_downloading_completed is false, then only some prefix of the file is ready to be read. downloaded_prefix_size is the size of that prefix. |
downloaded_size | number | Total downloaded file bytes. Should 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.