tgbot-cpp
InlineQuery.h
Go to the documentation of this file.
1 //
2 // Created by Andrea Giove on 26/03/16.
3 //
4 
5 #ifndef TGBOT_INLINEQUERY_H
6 #define TGBOT_INLINEQUERY_H
7 
8 #include <memory>
9 #include <string>
10 
11 #include "tgbot/types/User.h"
12 #include "tgbot/types/Location.h"
13 
14 namespace TgBot {
15 
21 class InlineQuery {
22 public:
23  typedef std::shared_ptr<InlineQuery> Ptr;
24 
28  std::string id;
29 
34 
39 
43  std::string query;
44 
48  std::string offset;
49 };
50 
51 }
52 
53 #endif //TGBOT_INLINEQUERY_H
Definition: Api.h:49
User::Ptr from
Sender.
Definition: InlineQuery.h:33
std::shared_ptr< Location > Ptr
Definition: Location.h:38
std::string query
Text of the query.
Definition: InlineQuery.h:43
Location::Ptr location
Optional. Sender location, only for bots that request user location.
Definition: InlineQuery.h:38
std::string offset
Offset of the results to be returned.
Definition: InlineQuery.h:48
This object represents an incoming inline query.
Definition: InlineQuery.h:21
std::shared_ptr< InlineQuery > Ptr
Definition: InlineQuery.h:23
std::string id
Unique query identifier.
Definition: InlineQuery.h:28
std::shared_ptr< User > Ptr
Definition: User.h:39