Parameters
required
Attachment object
Returns
Promise<boolean>
True if file exists, false otherwiseDocumentation Index
Fetch the complete documentation index at: /docs/llms.txt
Use this file to discover all available pages before exploring further.
attachmentExists(attachment: Attachment): Promise<boolean>
import { attachmentExists } from '@photon-ai/imessage-kit/helpers'
const attachment = message.attachments[0]
if (await attachmentExists(attachment)) {
console.log('Attachment exists')
}
Promise<boolean>
True if file exists, false otherwiseWas this page helpful?