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::inputMessageDocument Class Referencefinal

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

Inheritance diagram for td::td_api::inputMessageDocument:
td::td_api::InputMessageContent td::td_api::Object td::TlObject

Public Member Functions

 inputMessageDocument ()
 
 inputMessageDocument (object_ptr< InputFile > &&document_, object_ptr< inputThumbnail > &&thumbnail_, bool disable_content_type_detection_, object_ptr< formattedText > &&caption_)
 
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

object_ptr< InputFiledocument_
 Document to be sent.
 
object_ptr< inputThumbnailthumbnail_
 Document thumbnail; pass null to skip thumbnail uploading.
 
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< formattedTextcaption_
 Document caption; pass null to use an empty caption; 0-getOption("message_caption_length_max") characters.
 

Static Public Attributes

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

Detailed Description

A document message (general file).

Definition at line 29142 of file td_api.h.

Constructor & Destructor Documentation

◆ inputMessageDocument() [1/2]

td::td_api::inputMessageDocument::inputMessageDocument ( )

A document message (general file).

◆ inputMessageDocument() [2/2]

td::td_api::inputMessageDocument::inputMessageDocument ( object_ptr< InputFile > &&  document_,
object_ptr< inputThumbnail > &&  thumbnail_,
bool  disable_content_type_detection_,
object_ptr< formattedText > &&  caption_ 
)

A document message (general file).

Parameters
[in]document_Document 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.
[in]caption_Document caption; pass null to use an empty caption; 0-getOption("message_caption_length_max") characters.

Member Function Documentation

◆ store()

void td::td_api::inputMessageDocument::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

◆ caption_

object_ptr<formattedText> td::td_api::inputMessageDocument::caption_

Document caption; pass null to use an empty caption; 0-getOption("message_caption_length_max") characters.

Definition at line 29159 of file td_api.h.

◆ disable_content_type_detection_

bool td::td_api::inputMessageDocument::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.

Definition at line 29157 of file td_api.h.

◆ document_

object_ptr<InputFile> td::td_api::inputMessageDocument::document_

Document to be sent.

Definition at line 29153 of file td_api.h.

◆ ID

const std::int32_t td::td_api::inputMessageDocument::ID = 1633383097
static

Identifier uniquely determining a type of the object.

Definition at line 29177 of file td_api.h.

◆ thumbnail_

object_ptr<inputThumbnail> td::td_api::inputMessageDocument::thumbnail_

Document thumbnail; pass null to skip thumbnail uploading.

Definition at line 29155 of file td_api.h.


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