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

Inherits Object.

Description

A rich message to send. Total length of all texts, including custom emoji alternative text and formula source, must not exceed getOption("rich_message_text_length_max"). The total number of all blocks, list items and table rows must not exceed getOption("rich_message_block_count_max"). The maximum allowed depth of nested blocks and rich texts is getOption("rich_message_depth_max"). The total number of media in all blocks must not exceed getOption("rich_message_media_count_max"). The maximum allowed number of table columns is getOption("rich_message_table_column_count_max").

Public Member Functions

 inputRichMessage ()
 inputRichMessage (object_ptr< RichMessageSource > &&source_, bool is_rtl_, bool detect_automatic_blocks_)
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 detect_automatic_blocks_
 Pass true to enable detection of URLs, email addresses and other automatic blocks.
bool is_rtl_
 Pass true if the message must be shown from right to left.
object_ptr< RichMessageSource > source_
 Source of the rich message.

Static Public Attributes

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

Constructor & Destructor Documentation

◆ inputRichMessage() [1/2]

inputRichMessage ( )

A rich message to send. Total length of all texts, including custom emoji alternative text and formula source, must not exceed getOption("rich_message_text_length_max"). The total number of all blocks, list items and table rows must not exceed getOption("rich_message_block_count_max"). The maximum allowed depth of nested blocks and rich texts is getOption("rich_message_depth_max"). The total number of media in all blocks must not exceed getOption("rich_message_media_count_max"). The maximum allowed number of table columns is getOption("rich_message_table_column_count_max").

◆ inputRichMessage() [2/2]

inputRichMessage ( object_ptr< RichMessageSource > && source_,
bool is_rtl_,
bool detect_automatic_blocks_ )

A rich message to send. Total length of all texts, including custom emoji alternative text and formula source, must not exceed getOption("rich_message_text_length_max"). The total number of all blocks, list items and table rows must not exceed getOption("rich_message_block_count_max"). The maximum allowed depth of nested blocks and rich texts is getOption("rich_message_depth_max"). The total number of media in all blocks must not exceed getOption("rich_message_media_count_max"). The maximum allowed number of table columns is getOption("rich_message_table_column_count_max").

Parameters
[in]source_Source of the rich message.
[in]is_rtl_Pass true if the message must be shown from right to left.
[in]detect_automatic_blocks_Pass true to enable detection of URLs, email addresses and other automatic blocks.

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: