Skip to content

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

Function: sendMessageWithSplit()

sendMessageWithSplit(api, rawText, baseParams, useParseMode?, convertChunks?): Promise<TextMessage[]>

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

Send a potentially long message by splitting it into multiple Telegram messages. Each chunk gets its own formatting attempt with per-chunk fallback to plain text.

  • reply_parameters: only on first message
  • reply_markup (inline keyboard): only on last message

Parameters

api

Api

rawText

string

baseParams

Record<string, any>

useParseMode?

string

convertChunks?

boolean

When true, each chunk is independently converted from standard Markdown to Telegram MarkdownV2 via convertToTelegramMarkdown. Use this when the caller wants automatic markdown conversion.

Returns

Promise<TextMessage[]>

Licensed under BUSL-1.1