1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-12-15 00:06:55 +01:00
MadelineProto/docs/TD_docs/methods/downloadFile.md

24 lines
886 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
### Parameters:
| Name | Type | Required | Description |
2017-08-20 11:05:56 +02:00
|----------|---------------|----------|-------------|
2018-03-20 16:42:05 +01:00
|file\_id|[CLICK ME int](../types/int.md) | Yes|Identifier of file to download|
|priority|[CLICK ME 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)