(client: any, target: any, limit: number, replyTo?: number)
| 338 | return { png: renderWordCloud(words, limit, validMessages), validMessages }; |
| 339 | } |
| 340 | |
| 341 | async 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 | |
| 352 | function formatStatus(config: CyScheduleConfig): string { |
no test coverage detected