MadelineProtoDocs/docs/TD_docs/methods/downloadFile.md

25 lines
941 B
Markdown
Raw Normal View History

2018-04-01 13:19:25 +02:00
---
title: downloadFile
description: Asynchronously downloads file from cloud. Updates updateFile will notify about download progress and successful download
2018-04-04 19:52:48 +02:00
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
2018-04-01 13:19:25 +02:00
---
2018-04-05 01:19:57 +02:00
# Method: downloadFile
2018-04-01 13:19:25 +02:00
[Back to methods index](index.md)
YOU CANNOT USE THIS METHOD IN MADELINEPROTO
Asynchronously downloads file from cloud. Updates updateFile will notify about download progress and successful download
### Parameters:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|file\_id|[int](../types/int.md) | Yes|Identifier of file to download|
|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)