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

Arguments for Api::answerInlineQuery. More...

#include <Types.h>

Public Attributes

std::string inlineQueryId { }
 Unique identifier for the answered query.
std::vector< std::shared_ptr< InlineQueryResult > > results { }
 A JSON-serialized Array of results for the inline query.
std::int32_t cacheTime = 300
 The maximum amount of time in seconds that the result of the inline query may be cached on the server. Defaults to 300.
bool isPersonal = false
 Pass True if results may be cached on the server side only for the user that sent the query. By default, results may be returned to any user who sends the same query.
std::string nextOffset = ""
 Pass the offset that a client should send in the next query with the same text to receive more results. Pass an empty string if there are no more results or if you don't support pagination. Offset length can't exceed 64 bytes.
std::shared_ptr< InlineQueryResultsButton > button = nullptr
 A JSON-serialized object describing a button to be shown above inline query results.

Detailed Description

Arguments for Api::answerInlineQuery.

Definition at line 14483 of file Types.h.

Member Data Documentation

◆ button

std::shared_ptr<InlineQueryResultsButton> TgBot::AnswerInlineQueryArgs::button = nullptr

A JSON-serialized object describing a button to be shown above inline query results.

Definition at line 14519 of file Types.h.

◆ cacheTime

std::int32_t TgBot::AnswerInlineQueryArgs::cacheTime = 300

The maximum amount of time in seconds that the result of the inline query may be cached on the server. Defaults to 300.

Definition at line 14498 of file Types.h.

◆ inlineQueryId

std::string TgBot::AnswerInlineQueryArgs::inlineQueryId { }

Unique identifier for the answered query.

Definition at line 14487 of file Types.h.

◆ isPersonal

bool TgBot::AnswerInlineQueryArgs::isPersonal = false

Pass True if results may be cached on the server side only for the user that sent the query. By default, results may be returned to any user who sends the same query.

Definition at line 14505 of file Types.h.

◆ nextOffset

std::string TgBot::AnswerInlineQueryArgs::nextOffset = ""

Pass the offset that a client should send in the next query with the same text to receive more results. Pass an empty string if there are no more results or if you don't support pagination. Offset length can't exceed 64 bytes.

Definition at line 14513 of file Types.h.

◆ results

std::vector<std::shared_ptr<InlineQueryResult> > TgBot::AnswerInlineQueryArgs::results { }

A JSON-serialized Array of results for the inline query.

Definition at line 14492 of file Types.h.


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