tdlib-obf API
Reference documentation for the public tdlib-obf API, generated from TDLib schemas and public headers
Loading...
Searching...
No Matches
td::td_api::addFileToDownloads Class Referencefinal

#include </home/runner/work/tdlib-obf/tdlib-obf/td/generate/auto/td/telegram/td_api.h>

Inheritance diagram for td::td_api::addFileToDownloads:
td::td_api::Function td::TlObject

Public Types

using ReturnType = object_ptr< file >
 Typedef for the type returned by the function.
 

Public Member Functions

 addFileToDownloads ()
 
 addFileToDownloads (int32 file_id_, int53 chat_id_, int53 message_id_, int32 priority_)
 
void store (TlStorerToString &s, const char *field_name) const final
 
- Public Member Functions inherited from td::TlObject
virtual void store (TlStorerUnsafe &s) const
 
virtual void store (TlStorerCalcLength &s) const
 
 TlObject ()=default
 
 TlObject (const TlObject &)=delete
 
TlObjectoperator= (const TlObject &)=delete
 
 TlObject (TlObject &&)=default
 
TlObjectoperator= (TlObject &&)=default
 
virtual ~TlObject ()=default
 

Public Attributes

int32 file_id_
 Identifier of the file to download.
 
int53 chat_id_
 Chat identifier of the message with the file.
 
int53 message_id_
 Message identifier.
 
int32 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.
 

Static Public Attributes

static const std::int32_t ID = 867533751
 Identifier uniquely determining a type of the object.
 

Detailed Description

Adds a file from a message to the list of file downloads. Download progress and completion of the download will be notified through updateFile updates. If message database is used, the list of file downloads is persistent across application restarts. The downloading is independent of download using downloadFile, i.e. it continues if downloadFile is canceled or is used to download a part of the file.

Returns object_ptr<File>.

Definition at line 88151 of file td_api.h.

Member Typedef Documentation

◆ ReturnType

Typedef for the type returned by the function.

Definition at line 88193 of file td_api.h.

Constructor & Destructor Documentation

◆ addFileToDownloads() [1/2]

td::td_api::addFileToDownloads::addFileToDownloads ( )

Default constructor for a function, which adds a file from a message to the list of file downloads. Download progress and completion of the download will be notified through updateFile updates. If message database is used, the list of file downloads is persistent across application restarts. The downloading is independent of download using downloadFile, i.e. it continues if downloadFile is canceled or is used to download a part of the file.

Returns object_ptr<File>.

◆ addFileToDownloads() [2/2]

td::td_api::addFileToDownloads::addFileToDownloads ( int32  file_id_,
int53  chat_id_,
int53  message_id_,
int32  priority_ 
)

Creates a function, which adds a file from a message to the list of file downloads. Download progress and completion of the download will be notified through updateFile updates. If message database is used, the list of file downloads is persistent across application restarts. The downloading is independent of download using downloadFile, i.e. it continues if downloadFile is canceled or is used to download a part of the file.

Returns object_ptr<File>.

Parameters
[in]file_id_Identifier of the file to download.
[in]chat_id_Chat identifier of the message with the file.
[in]message_id_Message identifier.
[in]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.

Member Function Documentation

◆ store()

void td::td_api::addFileToDownloads::store ( TlStorerToString &  s,
const char *  field_name 
) const
finalvirtual

Helper function for to_string method. Appends string representation of the object to the storer.

Parameters
[in]sStorer to which object string representation will be appended.
[in]field_nameObject field_name if applicable.

Implements td::TlObject.

Member Data Documentation

◆ chat_id_

int53 td::td_api::addFileToDownloads::chat_id_

Chat identifier of the message with the file.

Definition at line 88164 of file td_api.h.

◆ file_id_

int32 td::td_api::addFileToDownloads::file_id_

Identifier of the file to download.

Definition at line 88162 of file td_api.h.

◆ ID

const std::int32_t td::td_api::addFileToDownloads::ID = 867533751
static

Identifier uniquely determining a type of the object.

Definition at line 88190 of file td_api.h.

◆ message_id_

int53 td::td_api::addFileToDownloads::message_id_

Message identifier.

Definition at line 88166 of file td_api.h.

◆ priority_

int32 td::td_api::addFileToDownloads::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.

Definition at line 88168 of file td_api.h.


The documentation for this class was generated from the following file: