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

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

Inheritance diagram for td::td_api::formattedText:
td::td_api::Object td::TlObject

Public Member Functions

 formattedText ()
 
 formattedText (string const &text_, array< object_ptr< textEntity > > &&entities_)
 
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

string text_
 The text.
 
array< object_ptr< textEntity > > entities_
 Entities contained in the text. Entities can be nested, but must not mutually intersect with each other. Pre, Code, PreCode, and DateTime entities can&#x27;t contain other entities. BlockQuote entities can&#x27;t contain other BlockQuote entities. Bold, Italic, Underline, Strikethrough, and Spoiler entities can contain and can be part of any other entities. All other entities can&#x27;t contain each other.
 

Static Public Attributes

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

Detailed Description

A text with some entities.

Definition at line 21773 of file td_api.h.

Constructor & Destructor Documentation

◆ formattedText() [1/2]

td::td_api::formattedText::formattedText ( )

A text with some entities.

◆ formattedText() [2/2]

td::td_api::formattedText::formattedText ( string const &  text_,
array< object_ptr< textEntity > > &&  entities_ 
)

A text with some entities.

Parameters
[in]text_The text.
[in]entities_Entities contained in the text. Entities can be nested, but must not mutually intersect with each other. Pre, Code, PreCode, and DateTime entities can&#x27;t contain other entities. BlockQuote entities can&#x27;t contain other BlockQuote entities. Bold, Italic, Underline, Strikethrough, and Spoiler entities can contain and can be part of any other entities. All other entities can&#x27;t contain each other.

Member Function Documentation

◆ store()

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

◆ entities_

array<object_ptr<textEntity> > td::td_api::formattedText::entities_

Entities contained in the text. Entities can be nested, but must not mutually intersect with each other. Pre, Code, PreCode, and DateTime entities can&#x27;t contain other entities. BlockQuote entities can&#x27;t contain other BlockQuote entities. Bold, Italic, Underline, Strikethrough, and Spoiler entities can contain and can be part of any other entities. All other entities can&#x27;t contain each other.

Definition at line 21786 of file td_api.h.

◆ ID

const std::int32_t td::td_api::formattedText::ID = -252624564
static

Identifier uniquely determining a type of the object.

Definition at line 21802 of file td_api.h.

◆ text_

string td::td_api::formattedText::text_

The text.

Definition at line 21784 of file td_api.h.


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