|
tgbot-cpp
|
This object represents an incoming inline query. When the user sends an empty query, your bot could return some default or trending results. More...
#include <InlineQuery.h>
Public Types | |
| typedef std::shared_ptr< InlineQuery > | Ptr |
Public Attributes | |
| std::string | id |
| Unique identifier for this query. | |
| User::Ptr | from |
| Sender. | |
| std::string | query |
| Text of the query (up to 256 characters) | |
| std::string | offset |
| Offset of the results to be returned, can be controlled by the bot. | |
| std::string | chatType |
| Optional. Type of the chat, from which the inline query was sent. Can be either “sender” for a private chat with the inline query sender, “private”, “group”, “supergroup”, or “channel”. The chat type should be always known for requests sent from official clients and most third-party clients, unless the request was sent from a secret chat. | |
| Location::Ptr | location |
| Optional. Sender location, only for bots that request user location. | |
This object represents an incoming inline query. When the user sends an empty query, your bot could return some default or trending results.
Definition at line 18 of file InlineQuery.h.
| typedef std::shared_ptr<InlineQuery> TgBot::InlineQuery::Ptr |
Definition at line 20 of file InlineQuery.h.
| std::string TgBot::InlineQuery::chatType |
Optional. Type of the chat, from which the inline query was sent. Can be either “sender” for a private chat with the inline query sender, “private”, “group”, “supergroup”, or “channel”. The chat type should be always known for requests sent from official clients and most third-party clients, unless the request was sent from a secret chat.
Definition at line 47 of file InlineQuery.h.
| User::Ptr TgBot::InlineQuery::from |
Sender.
Definition at line 30 of file InlineQuery.h.
| std::string TgBot::InlineQuery::id |
Unique identifier for this query.
Definition at line 25 of file InlineQuery.h.
| Location::Ptr TgBot::InlineQuery::location |
Optional. Sender location, only for bots that request user location.
Definition at line 52 of file InlineQuery.h.
| std::string TgBot::InlineQuery::offset |
Offset of the results to be returned, can be controlled by the bot.
Definition at line 40 of file InlineQuery.h.
| std::string TgBot::InlineQuery::query |
Text of the query (up to 256 characters)
Definition at line 35 of file InlineQuery.h.