Documentation - v0.32.8
    Preparing search index...

    Interface InputInlineMessageWidget

    Inline message containing an HTML widget

    interface InputInlineMessageWidget {
        allowQueries?: boolean;
        chatData?: string;
        height?: number;
        html: string;
        invertMedia?: boolean;
        publicData?: string;
        replyMarkup?: ReplyMarkup;
        shared?: boolean;
        text?: InputText;
        type: "widget";
        width?: number;
    }

    Hierarchy

    • Omit<InputMediaWidget, "caption">
    • InlineMessageWidgetMixin
      • InputInlineMessageWidget
    Index

    Properties

    allowQueries?: boolean

    Whether the widget can send queries to the bot

    chatData?: string

    Initial chat-specific state of the widget (up to 1024 bytes)

    height?: number

    Height of the widget in CSS pixels

    0 (automatic)
    
    html: string

    HTML source of the widget (up to 32 KB, and up to 4 KB after zlib compression).

    Must be a single self-contained document without external resources

    invertMedia?: boolean

    Whether to render the widget above the caption

    publicData?: string

    Initial shared state of the widget (up to 1024 bytes)

    replyMarkup?: ReplyMarkup

    Message reply markup

    shared?: boolean

    Whether to create a shared widget object, which can later be re-sent by its ID and whose publicData is shared between all messages containing it

    text?: InputText

    Caption of the widget

    type: "widget"
    width?: number

    Width of the widget in CSS pixels

    0 (automatic)