public static class TdApi.UploadFile extends TdApi.Function
Returns File
TdApi.Function.Constructors
Modifier and Type | Field and Description |
---|---|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
TdApi.InputFile |
file
File to upload.
|
TdApi.FileType |
fileType
File type; pass null if unknown.
|
int |
priority
Priority of the upload (1-32).
|
Constructor and Description |
---|
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.
|
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.
|
Modifier and Type | Method and Description |
---|---|
int |
getConstructor() |
toString
public TdApi.InputFile file
public TdApi.FileType fileType
public int priority
public static final int CONSTRUCTOR
public UploadFile()
Returns File
public UploadFile(TdApi.InputFile file, TdApi.FileType fileType, int priority)
Returns File
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.public int getConstructor()
getConstructor
in class TdApi.Function