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

Method getFileNameFromDocument

rev/rev.ts:371–379  ·  view source on GitHub ↗
(doc: Api.Document)

Source from the content-addressed store, hash-verified

369 }
370 return false;
371 }
372
373 private getFileNameFromDocument(doc: Api.Document): string | null {
374 if (!doc || !doc.attributes) return null;
375 for (const attr of doc.attributes) {
376 if (attr instanceof Api.DocumentAttributeFilename) {
377 return attr.fileName;
378 }
379 }
380 return null;
381 }
382

Callers 3

isSupportedMediaMethod · 0.95
isGifMediaMethod · 0.95
getExtensionFromMediaMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected