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