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 <Types.h>
|
| std::string | id { } |
| | Unique identifier for this query.
|
| std::shared_ptr< User > | 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::optional< 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.
|
| std::shared_ptr< Location > | 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 4444 of file Types.h.
◆ Ptr
◆ chatType
| std::optional<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 4473 of file Types.h.
◆ from
| std::shared_ptr<User> TgBot::InlineQuery::from { } |
◆ id
| std::string TgBot::InlineQuery::id { } |
Unique identifier for this query.
Definition at line 4450 of file Types.h.
◆ location
| std::shared_ptr<Location> TgBot::InlineQuery::location { } |
Optional. Sender location, only for bots that request user location.
Definition at line 4478 of file Types.h.
◆ offset
| std::string TgBot::InlineQuery::offset { } |
Offset of the results to be returned, can be controlled by the bot.
Definition at line 4465 of file Types.h.
◆ query
| std::string TgBot::InlineQuery::query { } |
Text of the query (up to 256 characters).
Definition at line 4460 of file Types.h.
The documentation for this struct was generated from the following file: