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

This object represents an incoming query from a forwarded message with a shared widget created by the bot. Use answerWidgetQuery to answer the query. Each user can send at most 5 queries per 5 seconds to the bot from all its widgets. More...

#include <Types.h>

Public Types

using Ptr = std::shared_ptr<SharedWidgetQuery>

Public Attributes

std::string id { }
 Unique identifier for this query.
std::shared_ptr< User > from { }
 Sender.
std::shared_ptr< WidgetQueryType > type { }
 Type of the query.
std::string data { }
 Data of the query, 1-64 bytes.
std::string widgetId { }
 Unique identifier of the shared widget, which sent the query.

Detailed Description

This object represents an incoming query from a forwarded message with a shared widget created by the bot. Use answerWidgetQuery to answer the query. Each user can send at most 5 queries per 5 seconds to the bot from all its widgets.

Definition at line 12747 of file Types.h.

Member Typedef Documentation

◆ Ptr

Definition at line 12748 of file Types.h.

Member Data Documentation

◆ data

std::string TgBot::SharedWidgetQuery::data { }

Data of the query, 1-64 bytes.

Definition at line 12765 of file Types.h.

◆ from

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

Sender.

Definition at line 12757 of file Types.h.

◆ id

std::string TgBot::SharedWidgetQuery::id { }

Unique identifier for this query.

Definition at line 12753 of file Types.h.

◆ type

std::shared_ptr<WidgetQueryType> TgBot::SharedWidgetQuery::type { }

Type of the query.

Definition at line 12761 of file Types.h.

◆ widgetId

std::string TgBot::SharedWidgetQuery::widgetId { }

Unique identifier of the shared widget, which sent the query.

Definition at line 12769 of file Types.h.


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