tgbot-cpp
Loading...
Searching...
No Matches
InlineQuery.h
Go to the documentation of this file.
1#ifndef TGBOT_INLINEQUERY_H
2#define TGBOT_INLINEQUERY_H
3
4#include "tgbot/types/User.h"
6
7#include <memory>
8#include <string>
9
10namespace TgBot {
11
19public:
20 typedef std::shared_ptr<InlineQuery> Ptr;
21
25 std::string id;
26
31
35 std::string query;
36
40 std::string offset;
41
47 std::string chatType;
48
53};
54}
55
56#endif //TGBOT_INLINEQUERY_H
This object represents an incoming inline query. When the user sends an empty query,...
Definition InlineQuery.h:18
std::string offset
Offset of the results to be returned, can be controlled by the bot.
Definition InlineQuery.h:40
std::shared_ptr< InlineQuery > Ptr
Definition InlineQuery.h:20
std::string id
Unique identifier for this query.
Definition InlineQuery.h:25
std::string chatType
Optional. Type of the chat, from which the inline query was sent. Can be either “sender” for a privat...
Definition InlineQuery.h:47
User::Ptr from
Sender.
Definition InlineQuery.h:30
std::string query
Text of the query (up to 256 characters)
Definition InlineQuery.h:35
Location::Ptr location
Optional. Sender location, only for bots that request user location.
Definition InlineQuery.h:52
std::shared_ptr< Location > Ptr
Definition Location.h:17
std::shared_ptr< User > Ptr
Definition User.h:18
Definition Api.h:40