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

Method cleanup

im/im.ts:587–592  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

585
586 if (!media || (fileSize !== undefined && fileSize > MAX_FILE_SIZE)) {
587 return;
588 }
589
590 try {
591 const buffer = await client.downloadMedia(media, {});
592 if (!buffer) {
593 return;
594 }
595 const md5 = crypto.createHash('md5').update(buffer).digest('hex');

Callers

nothing calls this directly

Calls 1

clearMethod · 0.80

Tested by

no test coverage detected