Parameters
required
Attachment object
string
required
Destination file path
Returns
Promise<void>Documentation Index
Fetch the complete documentation index at: /docs/llms.txt
Use this file to discover all available pages before exploring further.
downloadAttachment(attachment: Attachment, destPath: string): Promise<void>
import { downloadAttachment } from '@photon-ai/imessage-kit/helpers'
const attachment = message.attachments[0]
await downloadAttachment(attachment, '/path/to/save/file.jpg')
Promise<void>Was this page helpful?