Interface InputMessageSharedWidget

A message with an existing shared widget; for bots only. Subtype of InputMessageContent.

interface InputMessageSharedWidget {
    @type: "inputMessageSharedWidget";
    caption: FormattedText;
    chat_data: string;
    show_caption_above_media?: boolean;
    widget_id: string;
}

Properties

@type: "inputMessageSharedWidget"
caption: FormattedText

Widget caption; pass null to use an empty caption; 0-getOption("message_caption_length_max") characters.

chat_data: string

Data of the widget that is specific to the chat.

show_caption_above_media?: boolean

True, if the caption must be shown above the widget; otherwise, the caption must be shown below the widget.

widget_id: string

Identifier of the shared widget.