mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-11 15:56:08 +00:00
17 lines
624 B
TypeScript
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,
|
|
});
|
|
}
|