mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-14 13:48:35 +00:00
refactor: simplify Telegram preview streaming to single boolean (#22012)
Merged via /review-pr -> /prepare-pr -> /merge-pr.
Prepared head SHA: a4017d3b94
Co-authored-by: obviyus <22031114+obviyus@users.noreply.github.com>
Co-authored-by: obviyus <22031114+obviyus@users.noreply.github.com>
Reviewed-by: @obviyus
This commit is contained in:
@@ -95,13 +95,15 @@ export type TelegramAccountConfig = {
|
||||
textChunkLimit?: number;
|
||||
/** Chunking mode: "length" (default) splits by size; "newline" splits on every newline. */
|
||||
chunkMode?: "length" | "newline";
|
||||
/** Enable live stream preview via message edits (default: true). */
|
||||
streaming?: boolean;
|
||||
/** Disable block streaming for this account. */
|
||||
blockStreaming?: boolean;
|
||||
/** Chunking config for Telegram stream previews in `streamMode: "block"`. */
|
||||
/** @deprecated Legacy chunking config from `streamMode: "block"`; ignored after migration. */
|
||||
draftChunk?: BlockStreamingChunkConfig;
|
||||
/** Merge streamed block replies before sending. */
|
||||
blockStreamingCoalesce?: BlockStreamingCoalesceConfig;
|
||||
/** Telegram stream preview mode (off|partial|block). Default: partial. */
|
||||
/** @deprecated Legacy key; migrated automatically to `streaming` boolean. */
|
||||
streamMode?: "off" | "partial" | "block";
|
||||
mediaMaxMb?: number;
|
||||
/** Telegram API client timeout in seconds (grammY ApiClientOptions). */
|
||||
|
||||
Reference in New Issue
Block a user