Interface MessageWidget

A message with an HTML widget. Subtype of MessageContent.

interface MessageWidget {
    @type: "messageWidget";
    can_send_background_queries?: boolean;
    can_send_queries?: boolean;
    caption: FormattedText;
    chat_data: string;
    height: number;
    html: string;
    is_copy?: boolean;
    public_data: string;
    show_caption_above_media?: boolean;
    widget_id: string;
    width: number;
}

Properties

@type: "messageWidget"
can_send_background_queries?: boolean

True, if the widget can send queries to the bot in the background.

can_send_queries?: boolean

True, if the widget can send queries to the bot.

caption: FormattedText

Widget caption.

chat_data: string

Data of the widget that is specific to the chat.

height: number

Height of the widget; 0 if the height of the widget isn't fixed.

html: string

HTML code of the widget.

is_copy?: boolean

True, if the message is a copy of the widget.

public_data: string

Public data of the widget.

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; 0 if the widget isn't shared.

width: number

Width of the widget; 0 if the widget must occupy the whole width of the message bubble.