Skip to content

PersistentAI API Documentation / @persistent-ai/fireflow-nodes / splitTelegramText

Function: splitTelegramText()

splitTelegramText(text, maxLength?): string[]

Defined in: packages/fireflow-nodes/src/nodes/telegram/markdown.ts:52

Split text into chunks that fit within Telegram's 4096-character limit. Uses findSplitPoint for boundary-aware splitting.

Parameters

text

string

maxLength?

number = TELEGRAM_MAX_LENGTH

Returns

string[]

Licensed under BUSL-1.1