Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

ImageResponseCard

import type { ImageResponseCard } from "https://aws-api.deno.dev/v0.4/services/lexmodelsv2.ts?docs=full";

A card that is shown to the user by a messaging platform. You define the contents of the card, the card is displayed by the platform.

When you use a response card, the response from the user is constrained to the text associated with a button on the card.

interface ImageResponseCard {
buttons?: Button[] | null;
imageUrl?: string | null;
subtitle?: string | null;
title: string;
}

§Properties

§
buttons?: Button[] | null
[src]

A list of buttons that should be displayed on the response card. The arrangement of the buttons is determined by the platform that displays the button.

§
imageUrl?: string | null
[src]

The URL of an image to display on the response card. The image URL must be publicly available so that the platform displaying the response card has access to the image.

§
subtitle?: string | null
[src]

The subtitle to display on the response card. The format of the subtitle is determined by the platform displaying the response card.

§
title: string
[src]

The title to display on the response card. The format of the title is determined by the platform displaying the response card.