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

Base class of all inline query results This object represents the content of a message to be sent as a result of an inline query. Telegram clients currently support the following 5 types: More...

#include <InputMessageContent.hpp>

Inheritance diagram for tgbotxx::InputMessageContent:
tgbotxx::InputContactMessageContent tgbotxx::InputInvoiceMessageContent tgbotxx::InputLocationMessageContent tgbotxx::InputTextMessageContent tgbotxx::InputVenueMessageContent

Public Member Functions

 InputMessageContent ()=default
 
 InputMessageContent (const nl::json &json)
 
virtual ~InputMessageContent ()=default
 
virtual nl::json toJson () const
 
virtual void fromJson (const nl::json &json)
 

Public Attributes

std::string type
 Type of this content. More...
 

Detailed Description

Base class of all inline query results This object represents the content of a message to be sent as a result of an inline query. Telegram clients currently support the following 5 types:

Definition at line 15 of file InputMessageContent.hpp.

Constructor & Destructor Documentation

◆ InputMessageContent() [1/2]

tgbotxx::InputMessageContent::InputMessageContent ( )
default

◆ InputMessageContent() [2/2]

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

Definition at line 17 of file InputMessageContent.hpp.

◆ ~InputMessageContent()

virtual tgbotxx::InputMessageContent::~InputMessageContent ( )
virtualdefault

Member Function Documentation

◆ fromJson()

virtual void tgbotxx::InputMessageContent::fromJson ( const nl::json &  json)
inlinevirtual

◆ toJson()

virtual nl::json tgbotxx::InputMessageContent::toJson ( ) const
inlinevirtual

Member Data Documentation

◆ type

std::string tgbotxx::InputMessageContent::type

Type of this content.

Definition at line 23 of file InputMessageContent.hpp.


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