MadelineProto/docs/TD_docs/methods/downloadFile.md

24 lines
864 B
Markdown
Raw Normal View History

---
title: downloadFile
2017-08-25 15:05:53 +02:00
description: Asynchronously downloads file from cloud. Updates updateFile will notify about download progress and successful download
---
## Method: downloadFile
[Back to methods index](index.md)
2017-06-06 18:39:21 +02:00
YOU CANNOT USE THIS METHOD IN MADELINEPROTO
2017-08-25 15:05:53 +02:00
Asynchronously downloads file from cloud. Updates updateFile will notify about download progress and successful download
### Params:
| Name | Type | Required | Description |
2017-08-20 11:05:56 +02:00
|----------|---------------|----------|-------------|
|file\_id|[int](../types/int.md) | Yes|Identifier of file to download|
2017-08-25 15:05:53 +02:00
|priority|[int](../types/int.md) | Yes|Priority of download, 1-32. The higher priority, the earlier file will be downloaded. If priorities of two files are equal then the last one for which downloadFile is called will be downloaded first|
### Return type: [Ok](../types/Ok.md)