@ascegu/teamily 1.0.27 → 1.0.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/monitor.ts +3 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ascegu/teamily",
3
- "version": "1.0.27",
3
+ "version": "1.0.28",
4
4
  "description": "OpenClaw Teamily channel plugin - Team instant messaging server integration",
5
5
  "keywords": [
6
6
  "channel",
package/src/monitor.ts CHANGED
@@ -305,10 +305,12 @@ export class TeamilyMonitor {
305
305
  const snapshotFile = new File([new Uint8Array(MINIMAL_JPEG)], "snapshot.jpg", {
306
306
  type: "image/jpeg",
307
307
  });
308
+ // SDK expects a bare extension ("mp4"), not a MIME type ("video/mp4").
309
+ const videoExt = fileName.split(".").pop()?.toLowerCase() || "mp4";
308
310
  const created = await sdk.createVideoMessageByFile({
309
311
  videoPath: "",
310
312
  duration: 0,
311
- videoType: contentType,
313
+ videoType: videoExt,
312
314
  snapshotPath: "",
313
315
  videoUUID: crypto.randomUUID(),
314
316
  videoUrl: "",