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

Represents the content of a message with a shared widget to be sent as the result of an inline query. Currently, widgets can't be sent in response to inline queries in the production environment. More...

#include <Types.h>

Public Types

using Ptr = std::shared_ptr<InputSharedWidgetMessageContent>

Public Attributes

std::string widgetId { }
 Unique identifier of the shared widget created by the bot.
std::optional< std::string > chatData { }
 Optional. Data of the widget, which is specific to the message, 0-1024 bytes.
std::optional< std::string > caption { }
 Optional. Widget caption, 0-1024 characters after entities parsing.
std::optional< std::string > parseMode { }
 Optional. Mode for parsing entities in the widget caption. See formatting options for more details.
std::optional< std::vector< std::shared_ptr< MessageEntity > > > captionEntities { }
 Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode.
std::optional< bool > showCaptionAboveMedia { }
 Optional. Pass True if the caption must be shown above the widget.

Detailed Description

Represents the content of a message with a shared widget to be sent as the result of an inline query. Currently, widgets can't be sent in response to inline queries in the production environment.

Definition at line 7619 of file Types.h.

Member Typedef Documentation

◆ Ptr

Definition at line 7620 of file Types.h.

Member Data Documentation

◆ caption

std::optional<std::string> TgBot::InputSharedWidgetMessageContent::caption { }

Optional. Widget caption, 0-1024 characters after entities parsing.

Definition at line 7633 of file Types.h.

◆ captionEntities

std::optional<std::vector<std::shared_ptr<MessageEntity> > > TgBot::InputSharedWidgetMessageContent::captionEntities { }

Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode.

Definition at line 7643 of file Types.h.

◆ chatData

std::optional<std::string> TgBot::InputSharedWidgetMessageContent::chatData { }

Optional. Data of the widget, which is specific to the message, 0-1024 bytes.

Definition at line 7629 of file Types.h.

◆ parseMode

std::optional<std::string> TgBot::InputSharedWidgetMessageContent::parseMode { }

Optional. Mode for parsing entities in the widget caption. See formatting options for more details.

Definition at line 7638 of file Types.h.

◆ showCaptionAboveMedia

std::optional<bool> TgBot::InputSharedWidgetMessageContent::showCaptionAboveMedia { }

Optional. Pass True if the caption must be shown above the widget.

Definition at line 7647 of file Types.h.

◆ widgetId

std::string TgBot::InputSharedWidgetMessageContent::widgetId { }

Unique identifier of the shared widget created by the bot.

Definition at line 7625 of file Types.h.


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