tgbot-cpp
TgBot::Game Class Reference

This object represents a game. More...

#include <Game.h>

Public Types

typedef std::shared_ptr< GamePtr
 

Public Attributes

std::string title
 Title of the game. More...
 
std::string description
 Description of the game. More...
 
std::vector< PhotoSize::Ptrphoto
 Photo that will be displayed in the game message in chats. More...
 
std::string text
 Optional. Brief description of the game or high scores included in the game message. More...
 
std::vector< MessageEntity::PtrtextEntities
 Optional. Special entities that appear in text, such as usernames, URLs, bot commands, etc. More...
 
Animation::Ptr animation
 Optional. Animation that will be displayed in the game message in chats. Upload via BotFather. More...
 

Detailed Description

This object represents a game.

Use BotFather to create and edit games, their short names will act as unique identifiers.

Definition at line 44 of file Game.h.

Member Typedef Documentation

typedef std::shared_ptr<Game> TgBot::Game::Ptr

Definition at line 46 of file Game.h.

Member Data Documentation

Animation::Ptr TgBot::Game::animation

Optional. Animation that will be displayed in the game message in chats. Upload via BotFather.

Definition at line 78 of file Game.h.

std::string TgBot::Game::description

Description of the game.

Definition at line 56 of file Game.h.

std::vector<PhotoSize::Ptr> TgBot::Game::photo

Photo that will be displayed in the game message in chats.

Definition at line 61 of file Game.h.

std::string TgBot::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 68 of file Game.h.

std::vector<MessageEntity::Ptr> TgBot::Game::textEntities

Optional. Special entities that appear in text, such as usernames, URLs, bot commands, etc.

Definition at line 73 of file Game.h.

std::string TgBot::Game::title

Title of the game.

Definition at line 51 of file Game.h.


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