mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-19 04:47:26 +00:00
Message: clarify media schema + fix MEDIA newline
This commit is contained in:
@@ -56,7 +56,11 @@ function buildSendSchema(options: { includeButtons: boolean; includeCards: boole
|
|||||||
effect: Type.Optional(
|
effect: Type.Optional(
|
||||||
Type.String({ description: "Alias for effectId (e.g., invisible-ink, balloons)." }),
|
Type.String({ description: "Alias for effectId (e.g., invisible-ink, balloons)." }),
|
||||||
),
|
),
|
||||||
media: Type.Optional(Type.String()),
|
media: Type.Optional(
|
||||||
|
Type.String({
|
||||||
|
description: "Media URL or local path. data: URLs are not supported here, use buffer.",
|
||||||
|
}),
|
||||||
|
),
|
||||||
filename: Type.Optional(Type.String()),
|
filename: Type.Optional(Type.String()),
|
||||||
buffer: Type.Optional(
|
buffer: Type.Optional(
|
||||||
Type.String({
|
Type.String({
|
||||||
|
|||||||
@@ -579,7 +579,7 @@ describe("runMessageAction sandboxed media validation", () => {
|
|||||||
params: {
|
params: {
|
||||||
channel: "slack",
|
channel: "slack",
|
||||||
target: "#C12345678",
|
target: "#C12345678",
|
||||||
message: "Hello\\nMEDIA: ./data/note.ogg",
|
message: "Hello\nMEDIA: ./data/note.ogg",
|
||||||
},
|
},
|
||||||
sandboxRoot: sandboxDir,
|
sandboxRoot: sandboxDir,
|
||||||
dryRun: true,
|
dryRun: true,
|
||||||
|
|||||||
Reference in New Issue
Block a user