




















@@ -2,6 +2,7 @@ import { loadChannelOutboundAdapter } from "../../channels/plugins/outbound/load
22import type { ChannelId } from "../../channels/plugins/types.public.js";
33import { getRuntimeConfig } from "../../config/config.js";
44import type { OpenClawConfig } from "../../config/types.openclaw.js";
5+import type { OutboundDeliveryFormattingOptions } from "../../infra/outbound/formatting.js";
56import type { OutboundMediaAccess } from "../../media/load-options.js";
67import { normalizeOptionalString } from "../../shared/string-coerce.js";
78@@ -20,8 +21,10 @@ type RuntimeSendOpts = {
2021replyToMessageId?: string | number;
2122silent?: boolean;
2223forceDocument?: boolean;
24+formatting?: OutboundDeliveryFormattingOptions;
2325gifPlayback?: boolean;
2426gatewayClientScopes?: readonly string[];
27+textMode?: "markdown" | "html";
2528};
26292730function resolveRuntimeThreadId(opts: RuntimeSendOpts): string | number | undefined {
@@ -55,6 +58,8 @@ export function createChannelOutboundRuntimeSend(params: {
5558 replyToId,
5659silent: opts.silent,
5760forceDocument: opts.forceDocument,
61+formatting:
62+opts.formatting ?? (opts.textMode === "html" ? { parseMode: "HTML" } : undefined),
5863gifPlayback: opts.gifPlayback,
5964gatewayClientScopes: opts.gatewayClientScopes,
6065});
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。