(
channelId: string,
filePath: string,
caption?: string,
)
| 190 | await this.sendLongMessage(chatId, text); |
| 191 | } |
| 192 | |
| 193 | async sendFile( |
| 194 | channelId: string, |
| 195 | filePath: string, |
| 196 | caption?: string, |
| 197 | ): Promise<void> { |
| 198 | if (!this.channel) { |
| 199 | throw new Error("[Feishu] Channel not initialized"); |
| 200 | } |
| 201 | |
| 202 | const chatId = parseFeishuChannelId(channelId); |
| 203 | const sent = await this.sendFileSafe(chatId, filePath, caption); |
| 204 | if (!sent) { |
| 205 | throw new Error(`[Feishu] Failed to send file: ${filePath}`); |
| 206 | } |
| 207 | } |
| 208 | |
| 209 | private async handleIncomingMessage(message: NormalizedMessage): Promise<void> { |
nothing calls this directly
no test coverage detected