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

Represents a Game. More...

#include <InlineQueryResult.hpp>

Inheritance diagram for tgbotxx::InlineQueryResultGame:
tgbotxx::InlineQueryResult

Public Member Functions

 InlineQueryResultGame ()
 
 InlineQueryResultGame (const nl::json &json)
 
nl::json toJson () const override
 
void fromJson (const nl::json &json) override
 
- Public Member Functions inherited from tgbotxx::InlineQueryResult
 InlineQueryResult ()=default
 
 InlineQueryResult (const nl::json &json)
 

Public Attributes

std::string gameShortName
 Short name of the game. More...
 
- Public Attributes inherited from tgbotxx::InlineQueryResult
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

Represents a Game.

Note
This will only work in Telegram versions released after October 1, 2016. Older clients will not display any inline results if a game result is among them.

Definition at line 864 of file InlineQueryResult.hpp.

Constructor & Destructor Documentation

◆ InlineQueryResultGame() [1/2]

tgbotxx::InlineQueryResultGame::InlineQueryResultGame ( )
inline

Definition at line 865 of file InlineQueryResult.hpp.

◆ InlineQueryResultGame() [2/2]

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

Definition at line 868 of file InlineQueryResult.hpp.

Member Function Documentation

◆ fromJson()

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

Reimplemented from tgbotxx::InlineQueryResult.

Definition at line 881 of file InlineQueryResult.hpp.

◆ toJson()

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

Reimplemented from tgbotxx::InlineQueryResult.

Definition at line 875 of file InlineQueryResult.hpp.

Member Data Documentation

◆ gameShortName

std::string tgbotxx::InlineQueryResultGame::gameShortName

Short name of the game.

Definition at line 873 of file InlineQueryResult.hpp.


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