fix: telegram draft chunking defaults (#667) (thanks @rubyrunsstuff)

This commit is contained in:
Peter Steinberger
2026-01-10 18:30:06 +01:00
parent 7a836c9ff0
commit 6480ef369f
10 changed files with 135 additions and 20 deletions

View File

@@ -19,7 +19,7 @@ import {
listNativeCommandSpecs,
} from "../auto-reply/commands-registry.js";
import { formatAgentEnvelope } from "../auto-reply/envelope.js";
import { resolveBlockStreamingChunking } from "../auto-reply/reply/block-streaming.js";
import { resolveTelegramDraftStreamingChunking } from "../auto-reply/reply/block-streaming.js";
import {
buildMentionRegexes,
matchesMentionPatterns,
@@ -749,7 +749,7 @@ export function createTelegramBot(opts: TelegramBotOptions) {
: undefined;
const draftChunking =
draftStream && streamMode === "block"
? resolveBlockStreamingChunking(cfg, "telegram", route.accountId)
? resolveTelegramDraftStreamingChunking(cfg, route.accountId)
: undefined;
const draftChunker = draftChunking
? new EmbeddedBlockChunker(draftChunking)