This object represents a game. Use BotFather to create and edit games, their short names will act as unique identifiers. https://core.telegram.org/bots/api#game.
More...
#include <Game.hpp>
|
| Game ()=default |
|
| Game (const nl::json &json) |
|
nl::json | toJson () const |
| Serializes this object to JSON. More...
|
|
void | fromJson (const nl::json &json) |
| Deserializes this object from JSON. More...
|
|
This object represents a game. Use BotFather to create and edit games, their short names will act as unique identifiers. https://core.telegram.org/bots/api#game.
Definition at line 9 of file Game.hpp.
◆ Game() [1/2]
◆ Game() [2/2]
tgbotxx::Game::Game |
( |
const nl::json & |
json | ) |
|
|
inlineexplicit |
◆ fromJson()
void tgbotxx::Game::fromJson |
( |
const nl::json & |
json | ) |
|
|
inline |
Deserializes this object from JSON.
Definition at line 52 of file Game.hpp.
◆ toJson()
nl::json tgbotxx::Game::toJson |
( |
| ) |
const |
|
inline |
Serializes this object to JSON.
- Returns
- JSON representation of this object
Definition at line 40 of file Game.hpp.
◆ animation
◆ description
std::string tgbotxx::Game::description |
Description of the game.
Definition at line 19 of file Game.hpp.
◆ photo
Photo that will be displayed in the game message in chats.
Definition at line 22 of file Game.hpp.
◆ text
std::string tgbotxx::Game::text |
Optional. Brief description of the game or high scores included in the game message. Can be automatically edited to include current high scores for the game when the bot calls setGameScore, or manually edited using editMessageText. 0-4096 characters.
Definition at line 28 of file Game.hpp.
◆ textEntities
Optional. Special entities that appear in text, such as usernames, URLs, bot commands, etc.
Definition at line 31 of file Game.hpp.
◆ title
std::string tgbotxx::Game::title |
Title of the game.
Definition at line 16 of file Game.hpp.
The documentation for this struct was generated from the following file: