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

Base class of all inline query results This object represents one result of an inline query. Telegram clients currently support results of the following 20 types: More...

#include <InlineQueryResult.hpp>

Inheritance diagram for tgbotxx::InlineQueryResult:
tgbotxx::InlineQueryResultArticle tgbotxx::InlineQueryResultAudio tgbotxx::InlineQueryResultCachedAudio tgbotxx::InlineQueryResultCachedDocument tgbotxx::InlineQueryResultCachedGif tgbotxx::InlineQueryResultCachedMpeg4Gif tgbotxx::InlineQueryResultCachedPhoto tgbotxx::InlineQueryResultCachedSticker tgbotxx::InlineQueryResultCachedVideo tgbotxx::InlineQueryResultCachedVoice tgbotxx::InlineQueryResultContact tgbotxx::InlineQueryResultDocument tgbotxx::InlineQueryResultGame tgbotxx::InlineQueryResultGif tgbotxx::InlineQueryResultLocation tgbotxx::InlineQueryResultMpeg4Gif tgbotxx::InlineQueryResultPhoto tgbotxx::InlineQueryResultVenue tgbotxx::InlineQueryResultVideo tgbotxx::InlineQueryResultVoice

Public Member Functions

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

Public Attributes

std::string type
 Type of the result. More...
 
std::string id
 Unique identifier for this result, 1-64 bytes. More...
 
Ptr< InlineKeyboardMarkupreplyMarkup
 Optional. Inline keyboard attached to the message. More...
 

Detailed Description

Constructor & Destructor Documentation

◆ InlineQueryResult() [1/2]

tgbotxx::InlineQueryResult::InlineQueryResult ( )
default

◆ InlineQueryResult() [2/2]

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

Definition at line 34 of file InlineQueryResult.hpp.

Member Function Documentation

◆ fromJson()

◆ toJson()

Member Data Documentation

◆ id

std::string tgbotxx::InlineQueryResult::id

Unique identifier for this result, 1-64 bytes.

Definition at line 42 of file InlineQueryResult.hpp.

◆ replyMarkup

Ptr<InlineKeyboardMarkup> tgbotxx::InlineQueryResult::replyMarkup

Optional. Inline keyboard attached to the message.

Definition at line 45 of file InlineQueryResult.hpp.

◆ type

std::string tgbotxx::InlineQueryResult::type

Type of the result.

Definition at line 39 of file InlineQueryResult.hpp.


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