Interface TemplateDocumentMessage

Интерфейс для шаблонного документа сообщения TemplateDocumentMessage

const templateDocument: TemplateDocumentMessage = {
type: 'document',
document: {
link: 'https://example.com/document.pdf',
id: 'doc_123'
}
};
interface TemplateDocumentMessage {
    document: { id?: string; link?: string };
    type: "document";
}

Properties

Properties

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

Объект документа

Type declaration

  • Optionalid?: string

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

  • Optionallink?: string

    URL документа (опционально)

type: "document"

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