TDLib
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
inputDocument Class Referencefinal

Inherits Object.

Description

A document (general file) to be sent.

Public Member Functions

 inputDocument ()
 
 inputDocument (object_ptr< InputFile > &&document_, object_ptr< inputThumbnail > &&thumbnail_, bool disable_content_type_detection_)
 
void store (TlStorerToString &s, const char *field_name) const final
 
- Public Member Functions inherited from TlObject
TlObject & operator= (const TlObject &)=delete
 
TlObject & operator= (TlObject &&)=default
 
virtual void store (TlStorerCalcLength &s) const
 
virtual void store (TlStorerUnsafe &s) const
 
 TlObject ()=default
 
 TlObject (const TlObject &)=delete
 
 TlObject (TlObject &&)=default
 
virtual ~TlObject ()=default
 

Public Attributes

bool disable_content_type_detection_
 Pass true to disable automatic file type detection and send the document as a file. Always true for files sent to secret chats.
 
object_ptr< InputFile > document_
 File to be sent.
 
object_ptr< inputThumbnail > thumbnail_
 Document thumbnail; pass null to skip thumbnail uploading.
 

Static Public Attributes

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

Constructor & Destructor Documentation

◆ inputDocument() [1/2]

A document (general file) to be sent.

◆ inputDocument() [2/2]

inputDocument ( object_ptr< InputFile > &&  document_,
object_ptr< inputThumbnail > &&  thumbnail_,
bool  disable_content_type_detection_ 
)

A document (general file) to be sent.

Parameters
[in]document_File to be sent.
[in]thumbnail_Document thumbnail; pass null to skip thumbnail uploading.
[in]disable_content_type_detection_Pass true to disable automatic file type detection and send the document as a file. Always true for files sent to secret chats.

Member Function Documentation

◆ store()

void 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 TlObject.


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