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

Function fetchRecentMessages

cy/cy.ts:320–323  ·  view source on GitHub ↗
(client: any, peer: any, limit: number)

Source from the content-addressed store, hash-verified

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

Callers 1

buildCloudImageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected