tgbot-cpp
Loading...
Searching...
No Matches
Game.h
Go to the documentation of this file.
1#ifndef TGBOT_GAME_H
2#define TGBOT_GAME_H
3
7
8#include <memory>
9#include <string>
10#include <vector>
11
12namespace TgBot {
13
21class Game {
22public:
23 typedef std::shared_ptr<Game> Ptr;
24
28 std::string title;
29
33 std::string description;
34
38 std::vector<PhotoSize::Ptr> photo;
39
45 std::string text;
46
50 std::vector<MessageEntity::Ptr> textEntities;
51
56};
57}
58
59#endif //TGBOT_GAME_H
std::shared_ptr< Animation > Ptr
Definition Animation.h:19
This object represents a game.
Definition Game.h:21
std::vector< MessageEntity::Ptr > textEntities
Optional. Special entities that appear in text, such as usernames, URLs, bot commands,...
Definition Game.h:50
Animation::Ptr animation
Optional. Animation that will be displayed in the game message in chats. Upload via BotFather.
Definition Game.h:55
std::vector< PhotoSize::Ptr > photo
Photo that will be displayed in the game message in chats.
Definition Game.h:38
std::shared_ptr< Game > Ptr
Definition Game.h:23
std::string text
Optional. Brief description of the game or high scores included in the game message.
Definition Game.h:45
std::string title
Title of the game.
Definition Game.h:28
std::string description
Description of the game.
Definition Game.h:33
Definition Api.h:40