|
| 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 | html { } |
| | HTML code of the widget, 1-32768 bytes. The code must not exceed 4096 bytes when compressed by zlib with the maximum compression level.
|
| 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.
|
| bool | allowQueries = false |
| | Pass True to allow the widget to send queries to the bot.
|
| 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::uint32_t | height = 0 |
| | Height of the widget in logical pixels; omit if the height of the widget isn't fixed. The height is clamped by the app to the range 50-600.
|
| bool | isShared = false |
| | Pass True to create a shared widget, which can be sent again using the method sendSharedWidget.
|
| 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::string | publicData = "" |
| | Public data of the widget, 0-1024 bytes, which will be available wherever the widget is shown. If the widget is shared, then all messages with it will have the same public data.
|
| 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.
|
| std::uint32_t | width = 0 |
| | Width of the widget in logical pixels; omit if the widget must occupy the whole width of the message bubble. The width is clamped by the app to the range from 200 to the maximum width of the message bubble.
|
Arguments for Api::sendWidget.
Definition at line 21320 of file Types.h.