mirror of https://github.com/openclaw/openclaw.git
Message: clarify media schema + fix MEDIA newline
This commit is contained in:
parent
21f8c3db18
commit
a6fd76efeb
|
|
@ -56,7 +56,11 @@ function buildSendSchema(options: { includeButtons: boolean; includeCards: boole
|
|||
effect: Type.Optional(
|
||||
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()),
|
||||
buffer: Type.Optional(
|
||||
Type.String({
|
||||
|
|
|
|||
|
|
@ -579,7 +579,7 @@ describe("runMessageAction sandboxed media validation", () => {
|
|||
params: {
|
||||
channel: "slack",
|
||||
target: "#C12345678",
|
||||
message: "Hello\\nMEDIA: ./data/note.ogg",
|
||||
message: "Hello\nMEDIA: ./data/note.ogg",
|
||||
},
|
||||
sandboxRoot: sandboxDir,
|
||||
dryRun: true,
|
||||
|
|
|
|||
Loading…
Reference in New Issue