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

A placeholder, currently holds no information. More...

#include <CallbackGame.hpp>

Public Member Functions

 CallbackGame ()=default
 
 CallbackGame (const nl::json &json)
 
nl::json toJson () const
 Serializes this object to JSON. More...
 
void fromJson ([[maybe_unused]] const nl::json &json)
 Deserializes this object from JSON. More...
 

Detailed Description

A placeholder, currently holds no information.

Note
Use BotFather to set up your game. https://core.telegram.org/bots/api#callbackgame

Definition at line 8 of file CallbackGame.hpp.

Constructor & Destructor Documentation

◆ CallbackGame() [1/2]

tgbotxx::CallbackGame::CallbackGame ( )
default

◆ CallbackGame() [2/2]

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

Definition at line 10 of file CallbackGame.hpp.

Member Function Documentation

◆ fromJson()

void tgbotxx::CallbackGame::fromJson ( [[maybe_unused] ] const nl::json &  json)
inline

Deserializes this object from JSON.

Definition at line 23 of file CallbackGame.hpp.

◆ toJson()

nl::json tgbotxx::CallbackGame::toJson ( ) const
inline

Serializes this object to JSON.

Returns
JSON representation of this object

Definition at line 17 of file CallbackGame.hpp.


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