(
chatId: string,
text: string,
replyTo?: string,
)
| 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 | } |
no test coverage detected