Interface InputMessageWidget

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

interface InputMessageWidget {
    @type: "inputMessageWidget";
    allow_queries?: boolean;
    caption: FormattedText;
    chat_data: string;
    height: number;
    html: string;
    is_shared?: boolean;
    public_data: string;
    show_caption_above_media?: boolean;
    width: number;
}

Properties

@type: "inputMessageWidget"
allow_queries?: boolean

Pass true to allow the widget to send queries to the bot.

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.

height: number

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

html: string

HTML code of the widget; 1-32768 bytes; must not exceed 4096 bytes when compressed by zlib with the maximal compression level.

is_shared?: boolean

Pass true to create a shared widget, which can be sent again by its identifier.

public_data: string

Public data of the widget, which will be available in copies and forwards of the message.

show_caption_above_media?: boolean

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

width: number

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