tgbot-cpp
Loading...
Searching...
No Matches
CallbackQuery.h
Go to the documentation of this file.
1#ifndef TGBOT_CALLBACKQUERY_H
2#define TGBOT_CALLBACKQUERY_H
3
4#include "tgbot/types/User.h"
6
7#include <memory>
8#include <string>
9
10namespace TgBot {
11
17public:
18 typedef std::shared_ptr<CallbackQuery> Ptr;
19
23 std::string id;
24
29
34
38 std::string inlineMessageId;
39
43 std::string chatInstance;
44
48 std::string data;
49
50 /*
51 * @brief Optional. Short name of a Game to be returned, serves as the unique identifier for the game
52 */
53 std::string gameShortName;
54};
55}
56
57#endif //TGBOT_CALLBACKQUERY_H
This object represents an incoming callback query from a callback button in an inline keyboard.
std::string inlineMessageId
Optional. Identifier of the message sent via the bot in inline mode, that originated the query.
std::string chatInstance
Global identifier, uniquely corresponding to the chat to which the message with the callback button w...
User::Ptr from
Sender.
Message::Ptr message
Optional. Message with the callback button that originated the query. Note that message content and m...
std::shared_ptr< CallbackQuery > Ptr
std::string data
Data associated with the callback button. Be aware that a bad client can send arbitrary data in this ...
std::string gameShortName
std::string id
Unique identifier for this query.
std::shared_ptr< Message > Ptr
Definition Message.h:68
std::shared_ptr< User > Ptr
Definition User.h:18
Definition Api.h:40