Parameters
required
Attachment object
Returns
boolean
True if attachment is an image fileDocumentation Index
Fetch the complete documentation index at: /docs/llms.txt
Use this file to discover all available pages before exploring further.
isImageAttachment(attachment: Attachment): boolean
import { isImageAttachment } from '@photon-ai/imessage-kit/helpers'
if (isImageAttachment(attachment)) {
console.log('This is an image')
}
boolean
True if attachment is an image fileWas this page helpful?