public static class TdApi.PreliminaryUploadFile extends TdApi.Function<TdApi.File>
Returns File
| 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 |
|---|
PreliminaryUploadFile()
Default constructor for a function, which preliminary uploads a file to the cloud before sending it in a message, which can be useful for uploading of being recorded voice and video notes.
|
PreliminaryUploadFile(TdApi.InputFile file,
TdApi.FileType fileType,
int priority)
Creates a function, which preliminary uploads a file to the cloud before sending it in a message, which can be useful for uploading of being recorded voice and video notes.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic TdApi.InputFile file
public TdApi.FileType fileType
public int priority
public static final int CONSTRUCTOR
public PreliminaryUploadFile()
Returns File
public PreliminaryUploadFile(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 preliminaryUploadFile was called will be uploaded first.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object