tgbot-cpp
Loading...
Searching...
No Matches
TgBot::InlineQuery Class 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 <InlineQuery.h>

Public Types

typedef std::shared_ptr< InlineQueryPtr
 

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.
 

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 18 of file InlineQuery.h.

Member Typedef Documentation

◆ Ptr

typedef std::shared_ptr<InlineQuery> TgBot::InlineQuery::Ptr

Definition at line 20 of file InlineQuery.h.

Member Data Documentation

◆ chatType

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.

◆ from

User::Ptr TgBot::InlineQuery::from

Sender.

Definition at line 30 of file InlineQuery.h.

◆ id

std::string TgBot::InlineQuery::id

Unique identifier for this query.

Definition at line 25 of file InlineQuery.h.

◆ location

Location::Ptr TgBot::InlineQuery::location

Optional. Sender location, only for bots that request user location.

Definition at line 52 of file InlineQuery.h.

◆ offset

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.

◆ query

std::string TgBot::InlineQuery::query

Text of the query (up to 256 characters)

Definition at line 35 of file InlineQuery.h.


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