tgbot-cpp
Loading...
Searching...
No Matches
TgBot::InlineQuery Struct Reference

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>

Public Types

using Ptr = std::shared_ptr<InlineQuery>

Public Attributes

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.

Detailed Description

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 4121 of file Types.h.

Member Typedef Documentation

◆ Ptr

using TgBot::InlineQuery::Ptr = std::shared_ptr<InlineQuery>

Definition at line 4122 of file Types.h.

Member Data Documentation

◆ 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 4146 of file Types.h.

◆ from

std::shared_ptr<User> TgBot::InlineQuery::from { }

Sender.

Definition at line 4131 of file Types.h.

◆ id

std::string TgBot::InlineQuery::id { }

Unique identifier for this query.

Definition at line 4127 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 4150 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 4139 of file Types.h.

◆ query

std::string TgBot::InlineQuery::query { }

Text of the query (up to 256 characters).

Definition at line 4135 of file Types.h.


The documentation for this struct was generated from the following file: