Package org.drinkless.tdlib
Class TdApi.UploadFile
- java.lang.Object
-
- org.drinkless.tdlib.TdApi.Object
-
- org.drinkless.tdlib.TdApi.Function
-
- org.drinkless.tdlib.TdApi.UploadFile
-
- Enclosing class:
- TdApi
public static class TdApi.UploadFile extends TdApi.Function
Asynchronously uploads a file to the cloud without sending it in a message. updateFile will be used to notify about upload progress and successful completion of the upload. The file will not have a persistent remote identifier until it will be sent in a message.Returns
File
-
-
Field Summary
Fields Modifier and Type Field Description static intCONSTRUCTORIdentifier uniquely determining type of the object.TdApi.InputFilefileFile to upload.TdApi.FileTypefileTypeFile type; pass null if unknown.intpriorityPriority of the upload (1-32).
-
Constructor Summary
Constructors Constructor Description UploadFile()Default constructor for a function, which asynchronously uploads a file to the cloud without sending it in a message.UploadFile(TdApi.InputFile file, TdApi.FileType fileType, int priority)Creates a function, which asynchronously uploads a file to the cloud without sending it in a message.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetConstructor()-
Methods inherited from class org.drinkless.tdlib.TdApi.Function
toString
-
-
-
-
Field Detail
-
file
public TdApi.InputFile file
File to upload.
-
fileType
public TdApi.FileType fileType
File type; pass null if unknown.
-
priority
public int priority
Priority of the upload (1-32). The higher the priority, the earlier the file will be uploaded. If the priorities of two files are equal, then the first one for which uploadFile was called will be uploaded first.
-
CONSTRUCTOR
public static final int CONSTRUCTOR
Identifier uniquely determining type of the object.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
UploadFile
public UploadFile()
Default constructor for a function, which asynchronously uploads a file to the cloud without sending it in a message. updateFile will be used to notify about upload progress and successful completion of the upload. The file will not have a persistent remote identifier until it will be sent in a message.Returns
File
-
UploadFile
public UploadFile(TdApi.InputFile file, TdApi.FileType fileType, int priority)
Creates a function, which asynchronously uploads a file to the cloud without sending it in a message. updateFile will be used to notify about upload progress and successful completion of the upload. The file will not have a persistent remote identifier until it will be sent in a message.Returns
File- Parameters:
file- File to upload.fileType- File type; pass null if unknown.priority- Priority of the upload (1-32). The higher the priority, the earlier the file will be uploaded. If the priorities of two files are equal, then the first one for which uploadFile was called will be uploaded first.
-
-
Method Detail
-
getConstructor
public int getConstructor()
- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-
-