tgbotxx  1.1.6.9
Telegram Bot C++ Library
tgbotxx::InputTextMessageContent Struct Reference

Represents the content of a text message to be sent as the result of an inline query. https://core.telegram.org/bots/api#inputtextmessagecontent. More...

#include <InputMessageContent.hpp>

Inheritance diagram for tgbotxx::InputTextMessageContent:
tgbotxx::InputMessageContent

Public Member Functions

 InputTextMessageContent ()
 
 InputTextMessageContent (const nl::json &json)
 
nl::json toJson () const override
 
void fromJson (const nl::json &json) override
 
- Public Member Functions inherited from tgbotxx::InputMessageContent
 InputMessageContent ()=default
 
 InputMessageContent (const nl::json &json)
 
virtual ~InputMessageContent ()=default
 

Public Attributes

std::string messageText
 Text of the message to be sent, 1-4096 characters. More...
 
std::string parseMode
 Optional. Mode for parsing entities in the message text. See formatting options for more details. More...
 
std::vector< Ptr< MessageEntity > > entities
 Optional. List of special entities that appear in message text, which can be specified instead of parse_mode. More...
 
bool disableWebPagePreview {}
 Optional. Disables link previews for links in the sent message. More...
 
- Public Attributes inherited from tgbotxx::InputMessageContent
std::string type
 Type of this content. More...
 

Detailed Description

Represents the content of a text message to be sent as the result of an inline query. https://core.telegram.org/bots/api#inputtextmessagecontent.

Definition at line 45 of file InputMessageContent.hpp.

Constructor & Destructor Documentation

◆ InputTextMessageContent() [1/2]

tgbotxx::InputTextMessageContent::InputTextMessageContent ( )
inline

Definition at line 46 of file InputMessageContent.hpp.

◆ InputTextMessageContent() [2/2]

tgbotxx::InputTextMessageContent::InputTextMessageContent ( const nl::json &  json)
inlineexplicit

Definition at line 49 of file InputMessageContent.hpp.

Member Function Documentation

◆ fromJson()

void tgbotxx::InputTextMessageContent::fromJson ( const nl::json &  json)
inlineoverridevirtual

Reimplemented from tgbotxx::InputMessageContent.

Definition at line 74 of file InputMessageContent.hpp.

◆ toJson()

nl::json tgbotxx::InputTextMessageContent::toJson ( ) const
inlineoverridevirtual

Reimplemented from tgbotxx::InputMessageContent.

Definition at line 65 of file InputMessageContent.hpp.

Member Data Documentation

◆ disableWebPagePreview

bool tgbotxx::InputTextMessageContent::disableWebPagePreview {}

Optional. Disables link previews for links in the sent message.

Definition at line 63 of file InputMessageContent.hpp.

◆ entities

std::vector<Ptr<MessageEntity> > tgbotxx::InputTextMessageContent::entities

Optional. List of special entities that appear in message text, which can be specified instead of parse_mode.

Definition at line 60 of file InputMessageContent.hpp.

◆ messageText

std::string tgbotxx::InputTextMessageContent::messageText

Text of the message to be sent, 1-4096 characters.

Definition at line 54 of file InputMessageContent.hpp.

◆ parseMode

std::string tgbotxx::InputTextMessageContent::parseMode

Optional. Mode for parsing entities in the message text. See formatting options for more details.

Definition at line 57 of file InputMessageContent.hpp.


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