Documentation - v0.32.8
    Preparing search index...

    Interface InputMediaWidget

    An HTML widget to be sent (bots only)

    interface InputMediaWidget {
        allowQueries?: boolean;
        caption?: InputText;
        chatData?: string;
        height?: number;
        html: string;
        publicData?: string;
        shared?: boolean;
        type: "widget";
        width?: number;
    }

    Hierarchy (View Summary)

    Index

    Properties

    allowQueries?: boolean

    Whether the widget can send queries to the bot

    caption?: InputText

    Caption of the media

    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

    publicData?: string

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

    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

    type: "widget"
    width?: number

    Width of the widget in CSS pixels

    0 (automatic)