MCPcopy Create free account
hub / github.com/TeleBoxOrg/TeleBox_Plugins / sendCloudToTarget

Function sendCloudToTarget

cy/cy.ts:340–349  ·  view source on GitHub ↗
(client: any, target: any, limit: number, replyTo?: number)

Source from the content-addressed store, hash-verified

338}
339
340async function sendCloudToTarget(client: any, target: any, limit: number, replyTo?: number): Promise<void> {
341 const { png } = await buildCloudImage(client, target, limit);
342 const file = new CustomFile("cy-wordcloud.png", png.length, "", png);
343 await client.sendFile(target, {
344 file,
345 caption: "",
346 forceDocument: false,
347 ...(replyTo ? { replyTo } : {}),
348 } as any);
349}
350
351function formatStatus(config: CyScheduleConfig): string {
352 return [

Callers 2

tickScheduleMethod · 0.85
CyPluginClass · 0.85

Calls 1

buildCloudImageFunction · 0.85

Tested by

no test coverage detected