telebot-ts API Documentation - v1.8.0
    Preparing search index...

    Interface WidgetQuery

    Represents an incoming query from a widget in a message sent by or via the bot.

    interface WidgetQuery {
        chat?: Chat;
        chat_instance: string;
        chat_type?: string;
        data: string;
        from: User;
        id: string;
        inline_message_id?: string;
        message_id?: number;
        type: WidgetQueryType;
        widget_id?: string;
    }
    Index
    chat?: Chat

    Chat where the widget message was sent, if available.

    chat_instance: string

    Global identifier uniquely corresponding to the chat.

    chat_type?: string

    Type of the chat, if available.

    data: string

    Data payload sent by the widget.

    from: User

    Sender of the query.

    id: string

    Unique identifier for this query.

    inline_message_id?: string

    Identifier of the inline message with the widget, if sent via the bot.

    message_id?: number

    Identifier of the message with the widget, if available.

    Type of the widget query.

    widget_id?: string

    Identifier of the shared widget, if applicable.