Files
openclaw/extensions/telegram/src/draft-chunking.ts
2026-06-10 13:35:19 +05:30

17 lines
624 B
TypeScript

// Telegram plugin module implements draft chunking behavior.
import {
resolveChannelDraftStreamingChunking,
type ChannelDraftStreamingChunking,
} from "openclaw/plugin-sdk/channel-outbound";
import type { OpenClawConfig } from "openclaw/plugin-sdk/config-contracts";
import { TELEGRAM_TEXT_CHUNK_LIMIT } from "./outbound-adapter.js";
export function resolveTelegramDraftStreamingChunking(
cfg: OpenClawConfig | undefined,
accountId?: string | null,
): ChannelDraftStreamingChunking {
return resolveChannelDraftStreamingChunking(cfg, "telegram", accountId, {
fallbackLimit: TELEGRAM_TEXT_CHUNK_LIMIT,
});
}