public static class TdApi.AddFileToDownloads extends TdApi.Function<TdApi.File>
Returns File
| Modifier and Type | Field and Description |
|---|---|
long |
chatId
Chat identifier of the message with the file.
|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
int |
fileId
Identifier of the file to download.
|
long |
messageId
Message identifier.
|
int |
priority
Priority of the download (1-32).
|
| Constructor and Description |
|---|
AddFileToDownloads()
Default constructor for a function, which adds a file from a message to the list of file downloads.
|
AddFileToDownloads(int fileId,
long chatId,
long messageId,
int priority)
Creates a function, which adds a file from a message to the list of file downloads.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic int fileId
public long chatId
public long messageId
public int priority
public static final int CONSTRUCTOR
public AddFileToDownloads()
Returns File
public AddFileToDownloads(int fileId,
long chatId,
long messageId,
int priority)
Returns File
fileId - Identifier of the file to download.chatId - Chat identifier of the message with the file.messageId - Message identifier.priority - Priority of the download (1-32). The higher the priority, the earlier the file will be downloaded. If the priorities of two files are equal, then the last one for which downloadFile/addFileToDownloads was called will be downloaded first.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object