Interface TemplateImageMessage

Интерфейс для шаблонного изображения сообщения TemplateImageMessage

const templateImage: TemplateImageMessage = {
type: 'image',
image: {
link: 'https://example.com/photo.jpg',
id: 'image_123'
}
};
interface TemplateImageMessage {
    image: { id?: string; link?: string };
    type: "image";
}

Properties

Properties

image: { id?: string; link?: string }

Объект изображения

Type declaration

  • Optionalid?: string

    ID медиа файла в Gupshup (опционально)

  • Optionallink?: string

    URL изображения (опционально)

type: "image"

Тип сообщения, всегда 'image'