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

Callers 2

tickScheduleMethod · 0.85
CyPluginClass · 0.85

Calls 1

buildCloudImageFunction · 0.85

Tested by

no test coverage detected