Implement video message upload

This commit is contained in:
DrSmoothl committed 2026-05-09 23:06:55 +08:00
1 parent 95df5234fb
commit 9ab4128799
6 files changed
+664 -10

No files matched your search

+4 -1
View File
@@ -158,9 +158,12 @@ async function segmentToElement(type: string, data: Record<string, unknown>, opt
};
}
case 'video': {
const source = String(data.file ?? data.url ?? data.path ?? '');
if (!source) return null;
return {
type: 'video',
url: String(data.file ?? data.url ?? ''),
url: source,
thumbUrl: data.thumb ? String(data.thumb) : undefined,
};
}
case 'json': {