Sinch Node.js SDK - v1.5.0
    Preparing search index...

    Interface AppCardMessage

    interface AppCardMessage {
        agent?: Agent;
        card_message: CardMessageItem;
        carousel_message?: never;
        channel_specific_message?: { [key: string]: ChannelSpecificMessage };
        choice_message?: never;
        contact_info_message?: never;
        explicit_channel_message?: { [key: string]: string };
        explicit_channel_omni_message?: {
            KAKAOTALK?: OmniMessageOverride;
            WECHAT?: OmniMessageOverride;
            WHATSAPP?: OmniMessageOverride;
        };
        list_message?: never;
        location_message?: never;
        media_message?: never;
        template_message?: never;
        text_message?: never;
    }

    Hierarchy

    • AppMessageBase
      • AppCardMessage
    Index

    Properties

    agent?: Agent

    Identity of a sender

    card_message: CardMessageItem

    CardMessageItem

    carousel_message?: never
    channel_specific_message?: { [key: string]: ChannelSpecificMessage }

    Channel specific messages, overriding any transcoding. The structure of this property is more well-defined than the open structure of the explicit_channel_message property, and may be easier to use. The key in the map must point to a valid conversation channel as defined in the enum ConversationChannel.

    choice_message?: never
    contact_info_message?: never
    explicit_channel_message?: { [key: string]: string }

    Allows you to specify a channel and define a corresponding channel specific message payload that will override the standard Conversation API message types. The key in the map must point to a valid conversation channel as defined in the enum ConversationChannel. The message content must be provided in string format. You may use the transcoding endpoint to help create your message. For more information about how to construct an explicit channel message for a particular channel, see that channel's corresponding documentation (for example, using explicit channel messages with the WhatsApp channel).

    explicit_channel_omni_message?: {
        KAKAOTALK?: OmniMessageOverride;
        WECHAT?: OmniMessageOverride;
        WHATSAPP?: OmniMessageOverride;
    }

    Override the message's content for specified channels. The key in the map must point to a valid conversation channel as defined in the enum ConversationChannel. The content defined under the specified channel will be sent on that channel.

    list_message?: never
    location_message?: never
    media_message?: never
    template_message?: never
    text_message?: never