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

Method sendSafe

src/runtime/adapters/feishu.ts:536–554  ·  view source on GitHub ↗
(
    chatId: string,
    text: string,
    replyTo?: string,
  )

Source from the content-addressed store, hash-verified

534 console.error("[Feishu] Failed to send file:", error);
535 return false;
536 }
537 }
538
539 private async sendSafe(
540 chatId: string,
541 text: string,
542 replyTo?: string,
543 ): Promise<void> {
544 if (!this.channel) {
545 return;
546 }
547
548 try {
549 await this.channel.send(
550 chatId,
551 { markdown: text },
552 replyTo ? { replyTo } : undefined,
553 );
554 } catch (error) {
555 console.error("[Feishu] Failed to send message:", error);
556 }
557 }

Callers 3

handleIncomingMessageMethod · 0.95
sendLongMessageMethod · 0.95
sendFileSafeMethod · 0.95

Calls 1

sendMethod · 0.45

Tested by

no test coverage detected