(client: any, peer: any, limit: number)
| 318 | return canvas.toBuffer("image/png"); |
| 319 | } |
| 320 | |
| 321 | async function fetchRecentMessages(client: any, peer: any, limit: number): Promise<Api.Message[]> { |
| 322 | if (!peer || !client) return []; |
| 323 | return safeGetMessages(client, peer, { limit }); |
| 324 | } |
| 325 | |
| 326 | async function buildCloudImage(client: any, target: any, limit: number): Promise<{ png: Buffer; validMessages: number }> { |