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

Represents a result of an inline query that was chosen by the user and sent to their chat partner. More...

#include <Types.h>

Public Types

using Ptr = std::shared_ptr<ChosenInlineResult>

Public Attributes

std::string resultId { }
 The unique identifier for the result that was chosen.
std::shared_ptr< Userfrom { }
 The user that chose the result.
std::shared_ptr< Locationlocation { }
 Optional. Sender location, only for bots that require user location.
std::optional< std::string > inlineMessageId { }
 Optional. Identifier of the sent inline message. Available only if there is an inline keyboard attached to the message. Will be also received in callback queries and can be used to edit the message.
std::string query { }
 The query that was used to obtain the result.

Detailed Description

Represents a result of an inline query that was chosen by the user and sent to their chat partner.

Definition at line 3115 of file Types.h.

Member Typedef Documentation

◆ Ptr

Definition at line 3116 of file Types.h.

Member Data Documentation

◆ from

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

The user that chose the result.

Definition at line 3126 of file Types.h.

◆ inlineMessageId

std::optional<std::string> TgBot::ChosenInlineResult::inlineMessageId { }

Optional. Identifier of the sent inline message. Available only if there is an inline keyboard attached to the message. Will be also received in callback queries and can be used to edit the message.

Definition at line 3138 of file Types.h.

◆ location

std::shared_ptr<Location> TgBot::ChosenInlineResult::location { }

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

Definition at line 3131 of file Types.h.

◆ query

std::string TgBot::ChosenInlineResult::query { }

The query that was used to obtain the result.

Definition at line 3143 of file Types.h.

◆ resultId

std::string TgBot::ChosenInlineResult::resultId { }

The unique identifier for the result that was chosen.

Definition at line 3121 of file Types.h.


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