botas-core
    Preparing search index...

    Interface CardAction

    A quick-reply button or action displayed to the user.

    Card actions represent clickable options in clients that support suggested actions or hero/thumbnail cards.

    interface CardAction {
        type: string;
        title?: string;
        value?: string;
        text?: string;
        displayText?: string;
        image?: string;
        [key: string]: unknown;
    }

    Indexable

    • [key: string]: unknown

      Additional channel-specific properties.

    Index

    Properties

    type: string

    Action type (e.g. "imBack", "postBack", "openUrl", "messageBack").

    title?: string

    Display text on the button.

    value?: string

    Value sent back to the bot when the action is invoked.

    text?: string

    Text to insert into the compose box when the action is invoked.

    displayText?: string

    Text shown in the chat feed when the action is invoked (may differ from text).

    image?: string

    URL to an icon image displayed on the button.