tgbot-cpp
CallbackQuery.h
Go to the documentation of this file.
1 //
2 // Created by Andrea Giove on 17/04/16.
3 //
4 
5 #ifndef TGBOT_CALLBACKQUERY_H
6 #define TGBOT_CALLBACKQUERY_H
7 
8 #include <memory>
9 #include <string>
10 
11 #include "tgbot/types/User.h"
12 #include "tgbot/types/Message.h"
13 
14 namespace TgBot {
15 
21 public:
22  typedef std::shared_ptr<CallbackQuery> Ptr;
23 
27  std::string id;
28 
33 
38 
42  std::string inlineMessageId;
43 
47  std::string chatInstance;
48 
52  std::string data;
53 
54  /*
55  * @brief Optional. Short name of a Game to be returned, serves as the unique identifier for the game
56  */
57  std::string gameShortName;
58 };
59 }
60 
61 #endif //TGBOT_CALLBACKQUERY_H
std::shared_ptr< CallbackQuery > Ptr
Definition: CallbackQuery.h:22
Definition: Api.h:47
User::Ptr from
Sender.
Definition: CallbackQuery.h:32
std::shared_ptr< Message > Ptr
Definition: Message.h:54
std::string data
Data associated with the callback button. Be aware that a bad client can send arbitrary data in this ...
Definition: CallbackQuery.h:52
Message::Ptr message
Optional. Message with the callback button that originated the query. Note that message content and m...
Definition: CallbackQuery.h:37
std::string gameShortName
Definition: CallbackQuery.h:57
std::string chatInstance
Global identifier, uniquely corresponding to the chat to which the message with the callback button w...
Definition: CallbackQuery.h:47
std::string id
Unique identifier for this query.
Definition: CallbackQuery.h:27
This object represents an incoming callback query from a callback button in an inline keyboard...
Definition: CallbackQuery.h:20
std::string inlineMessageId
Optional. Identifier of the message sent via the bot in inline mode, that originated the query...
Definition: CallbackQuery.h:42
std::shared_ptr< User > Ptr
Definition: User.h:39