Adds a file from a message to the list of file downloads. Download progress and completion of the download will be notified through updateFile updates. If message database is used, the list of file downloads is persistent across application restarts. The downloading is independent of download using Client.download_file i.e. it continues if Client.download_file is canceled or is used to download a part of the file
file_id |
Identifier of the file to download |
chat_id |
Chat identifier of the message with the file |
message_id |
Message identifier |
priority |
Priority of the download (1-32). The higher the priority, the earlier the file will be downloaded. If the priorities of two files are equal, then the last one for which downloadFile/addFileToDownloads was called will be downloaded first |