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

Method sendMessage

src/runtime/adapters/telegram.ts:86–93  ·  view source on GitHub ↗

* Public method: send a message to a specific Telegram chat. * channelId format: telegram-

(channelId: string, text: string)

Source from the content-addressed store, hash-verified

84 * channelId format: telegram-<chatId>
85 */
86 async sendMessage(channelId: string, text: string): Promise<void> {
87 if (!this.bot) throw new Error("[Telegram] Bot not initialized");
88 const chatId = Number(channelId.replace("telegram-", ""));
89 if (isNaN(chatId)) {
90 throw new Error(`[Telegram] Invalid channelId: ${channelId}`);
91 }
92 await this.sendLongMessage(chatId, text);
93 }
94
95 // -------------------------------------------------------------------------
96 // Message handler

Callers

nothing calls this directly

Calls 1

sendLongMessageMethod · 0.95

Tested by

no test coverage detected