Files
openclaw/extensions/telegram/src/preview-streaming.ts
Peter Steinberger 96a75be170 fix(discord): default preview streaming to off (#120376)
Make Discord progress drafts and activity receipts explicit opt-ins while preserving configured streaming modes and legacy explicit progress migrations. Related: #87704.
2026-08-07 17:18:12 -07:00

17 lines
586 B
TypeScript

// Telegram plugin module implements preview streaming behavior.
import {
resolveChannelPreviewStreamMode,
type StreamingMode,
} from "openclaw/plugin-sdk/channel-outbound";
export function resolveTelegramPreviewStreamMode(
params: {
streaming?: unknown;
} = {},
): StreamingMode {
// Telegram defaults to the progress draft: on tool-heavy turns a status draft
// answers "is it working?", which streamed answer text cannot.
// Operators who prefer streamed answer text set `streaming.mode: "partial"`.
return resolveChannelPreviewStreamMode(params, "progress");
}