TDLib
Loading...
Searching...
No Matches
draftMessageContentText Class Referencefinal

Inherits DraftMessageContent.

Description

A text message draft.

Public Member Functions

 draftMessageContentText ()
 draftMessageContentText (object_ptr< formattedText > &&text_, object_ptr< linkPreviewOptions > &&link_preview_options_)
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

object_ptr< linkPreviewOptions > link_preview_options_
 Options to be used for generation of a link preview; may be null if none; pass null to use default link preview options.
object_ptr< formattedText > text_
 Formatted text to be saved as a draft; 0-getOption("message_text_length_max") characters.

Static Public Attributes

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

Constructor & Destructor Documentation

◆ draftMessageContentText() [1/2]

draftMessageContentText ( )

A text message draft.

◆ draftMessageContentText() [2/2]

draftMessageContentText ( object_ptr< formattedText > && text_,
object_ptr< linkPreviewOptions > && link_preview_options_ )

A text message draft.

Parameters
[in]text_Formatted text to be saved as a draft; 0-getOption("message_text_length_max") characters.
[in]link_preview_options_Options to be used for generation of a link preview; may be null if none; pass null to use default link preview options.

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: