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

Method sendFile

src/runtime/adapters/feishu.ts:192–206  ·  view source on GitHub ↗
(
    channelId: string,
    filePath: string,
    caption?: string,
  )

Source from the content-addressed store, hash-verified

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> {

Callers

nothing calls this directly

Calls 2

sendFileSafeMethod · 0.95
parseFeishuChannelIdFunction · 0.85

Tested by

no test coverage detected