Video (VIDEO)
Video file message. The data structure uses the same media schema as IMAGE / AUDIO / FILE.
data schema
{
url: string;
mime: string;
path: string;
size: number;
fileName: string;
extension: string;
caption?: string;
}
| Field | Type | Description |
|---|---|---|
url | string | Playable URL |
mime | string | MIME type (e.g. video/mp4) |
path | string | Storage path |
size | number | Size (bytes) |
fileName | string | File name |
extension | string | Extension (e.g. mp4) |
caption | string? | Optional caption |
Example
{
"id": "e5f6a7b8-c9d0-1234-ef01-345678901234",
"createdAt": "2026-07-24T10:03:00.000Z",
"type": "VIDEO",
"nameOfSender": "Support Bot",
"isFromSupport": true,
"data": {
"url": "https://os.chatbot.aithinks.net/chat-assets/chats/.../demo.mp4",
"mime": "video/mp4",
"path": "chats/.../demo.mp4",
"size": 5242880,
"fileName": "demo.mp4",
"extension": "mp4",
"caption": "Ürün tanıtım videosu"
}
}
UI recommendation
- Use HTML5
<video controls>withdata.url. - Show
captionif present.