MCPcopy Create free account
hub / github.com/CreminiAI/skillpack / sendLongMessage

Method sendLongMessage

src/runtime/adapters/telegram.ts:208–214  ·  view source on GitHub ↗

* Send a message, splitting into chunks if too long.

(chatId: number, text: string)

Source from the content-addressed store, hash-verified

206 * Send a message, splitting into chunks if too long.
207 */
208 private async sendLongMessage(chatId: number, text: string): Promise<void> {
209 const chunks = this.splitMessage(text);
210
211 for (const chunk of chunks) {
212 await this.sendWithRetry(chatId, chunk);
213 }
214 }
215
216 /**
217 * React to the incoming message to show the bot has started processing it.

Callers 2

sendMessageMethod · 0.95
handleTelegramMessageMethod · 0.95

Calls 2

splitMessageMethod · 0.95
sendWithRetryMethod · 0.95

Tested by

no test coverage detected