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

25 lines
1.1 KiB
Markdown
Raw Normal View History

2017-08-25 15:05:53 +02:00
---
title: uploadFile
description: Asynchronously uploads file to the cloud without sending it in a message. Updates updateFile will notify about upload progress and successful upload. The file will not have persistent identifier until it will be sent in a message
---
## Method: uploadFile
[Back to methods index](index.md)
YOU CANNOT USE THIS METHOD IN MADELINEPROTO
Asynchronously uploads file to the cloud without sending it in a message. Updates updateFile will notify about upload progress and successful upload. The file will not have persistent identifier until it will be sent in a message
### Parameters:
2017-08-25 15:05:53 +02:00
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
2018-03-20 16:42:05 +01:00
|file|[CLICK ME InputFile](../types/InputFile.md) | Yes|File to upload|
|file\_type|[CLICK ME FileType](../types/FileType.md) | Yes|File type|
|priority|[CLICK ME int](../types/int.md) | Yes|Priority of upload, 1-32. The higher priority, the earlier file will be uploaded. If priorities of two files are equal then the first one for which uploadFile is called will be uploaded first|
2017-08-25 15:05:53 +02:00
### Return type: [File](../types/File.md)