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

Arguments for Api::sendSharedWidget. More...

#include <Types.h>

Public Attributes

std::variant< std::int64_t, std::string > chatId { }
 Unique identifier for the target chat or username of the target supergroup in the format @username.
std::string widgetId { }
 Unique identifier of the shared widget.
bool allowPaidBroadcast = false
 Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0.1 Telegram Stars per message. The relevant Stars will be withdrawn from the bot's balance.
std::string caption = ""
 Widget caption, 0-1024 characters after entities parsing.
std::vector< std::shared_ptr< MessageEntity > > captionEntities = { }
 A JSON-serialized list of special entities that appear in the caption, which can be specified instead of parse_mode.
std::string chatData = ""
 Data of the widget, which is specific to the message, 0-1024 bytes.
bool disableNotification = false
 Sends the message silently. Users will receive a notification with no sound.
std::string messageEffectId = ""
 Unique identifier of the message effect to be added to the message; for private chats only.
std::uint32_t messageThreadId = 0
 Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private chats of bots with forum topic mode enabled only.
std::string parseMode = ""
 Mode for parsing entities in the widget caption. See formatting options for more details.
bool protectContent = false
 Protects the contents of the sent message from forwarding and saving.
std::variant< std::shared_ptr< InlineKeyboardMarkup >, std::shared_ptr< ReplyKeyboardMarkup >, std::shared_ptr< ReplyKeyboardRemove >, std::shared_ptr< ForceReply > > replyMarkup = { }
 Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user.
std::shared_ptr< ReplyParameters > replyParameters = nullptr
 Description of the message to reply to.
bool showCaptionAboveMedia = false
 Pass True if the caption must be shown above the widget.

Detailed Description

Arguments for Api::sendSharedWidget.

Definition at line 20562 of file Types.h.

Member Data Documentation

◆ allowPaidBroadcast

bool TgBot::SendSharedWidgetArgs::allowPaidBroadcast = false

Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0.1 Telegram Stars per message. The relevant Stars will be withdrawn from the bot's balance.

Definition at line 20579 of file Types.h.

◆ caption

std::string TgBot::SendSharedWidgetArgs::caption = ""

Widget caption, 0-1024 characters after entities parsing.

Definition at line 20584 of file Types.h.

◆ captionEntities

std::vector<std::shared_ptr<MessageEntity> > TgBot::SendSharedWidgetArgs::captionEntities = { }

A JSON-serialized list of special entities that appear in the caption, which can be specified instead of parse_mode.

Definition at line 20590 of file Types.h.

◆ chatData

std::string TgBot::SendSharedWidgetArgs::chatData = ""

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

Definition at line 20595 of file Types.h.

◆ chatId

std::variant<std::int64_t, std::string> TgBot::SendSharedWidgetArgs::chatId { }

Unique identifier for the target chat or username of the target supergroup in the format @username.

Definition at line 20567 of file Types.h.

◆ disableNotification

bool TgBot::SendSharedWidgetArgs::disableNotification = false

Sends the message silently. Users will receive a notification with no sound.

Definition at line 20601 of file Types.h.

◆ messageEffectId

std::string TgBot::SendSharedWidgetArgs::messageEffectId = ""

Unique identifier of the message effect to be added to the message; for private chats only.

Definition at line 20607 of file Types.h.

◆ messageThreadId

std::uint32_t TgBot::SendSharedWidgetArgs::messageThreadId = 0

Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private chats of bots with forum topic mode enabled only.

Definition at line 20614 of file Types.h.

◆ parseMode

std::string TgBot::SendSharedWidgetArgs::parseMode = ""

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

Definition at line 20620 of file Types.h.

◆ protectContent

bool TgBot::SendSharedWidgetArgs::protectContent = false

Protects the contents of the sent message from forwarding and saving.

Definition at line 20625 of file Types.h.

◆ replyMarkup

std::variant<std::shared_ptr<InlineKeyboardMarkup>, std::shared_ptr<ReplyKeyboardMarkup>, std::shared_ptr<ReplyKeyboardRemove>, std::shared_ptr<ForceReply> > TgBot::SendSharedWidgetArgs::replyMarkup = { }

Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user.

Definition at line 20634 of file Types.h.

◆ replyParameters

std::shared_ptr<ReplyParameters> TgBot::SendSharedWidgetArgs::replyParameters = nullptr

Description of the message to reply to.

Definition at line 20639 of file Types.h.

◆ showCaptionAboveMedia

bool TgBot::SendSharedWidgetArgs::showCaptionAboveMedia = false

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

Definition at line 20644 of file Types.h.

◆ widgetId

std::string TgBot::SendSharedWidgetArgs::widgetId { }

Unique identifier of the shared widget.

Definition at line 20572 of file Types.h.


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