Parameters
required
Attachment object
Returns
Promise<any>
File stats or null if file doesn’t existDocumentation Index
Fetch the complete documentation index at: /docs/llms.txt
Use this file to discover all available pages before exploring further.
getAttachmentMetadata(attachment: Attachment): Promise<any>
import { getAttachmentMetadata } from '@photon-ai/imessage-kit/helpers'
const metadata = await getAttachmentMetadata(attachment)
if (metadata) {
console.log(`Size: ${metadata.size}, Modified: ${metadata.mtime}`)
}
Promise<any>
File stats or null if file doesn’t existWas this page helpful?