mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-16 23:52:40 -06:00
96a75be170
Make Discord progress drafts and activity receipts explicit opt-ins while preserving configured streaming modes and legacy explicit progress migrations. Related: #87704.
17 lines
586 B
TypeScript
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");
|
|
}
|