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

Member Typedef Documentation

◆ Ptr

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

Definition at line 4375 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 4399 of file Types.h.

◆ from

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

Sender.

Definition at line 4384 of file Types.h.

◆ id

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

Unique identifier for this query.

Definition at line 4380 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 4403 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 4392 of file Types.h.

◆ query

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

Text of the query (up to 256 characters).

Definition at line 4388 of file Types.h.


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