Static content types for messages and attachments.
Properties:
| Name | Type | Description |
|---|---|---|
Llaminate.TEXT |
string | The type for text content. |
Llaminate.ATTACHMENT |
string | The type for attachment content. |
Llaminate.JSON |
string | A convenience type for JSON content (actually identical to Llaminate.TEXT). |
Examples
const content = [{
type: Llaminate.TEXT,
text: "Hello, world!"
}];
const content = [{
type: Llaminate.ATTACHMENT,
attachment: {
mime: Llaminate.JPEG,
url: "https://example.com/image.jpg"
}
}];
const content = [{
type: Llaminate.JSON,
text: "{ 'name': 'Alice', 'location': 'Wonderland' }"
}];