MadelineProtoDocs/docs/TD_docs/methods/uploadFile.md
Daniil Gentili e5a1324684 docufix
2018-04-04 23:19:57 +00:00

1.2 KiB

title description image
uploadFile 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 https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Method: uploadFile

Back to methods index

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:

Name Type Required Description
file InputFile Yes File to upload
file_type FileType Yes File type
priority int 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

Return type: File