attachments

abstract var attachments: Array<JsAny>

An array of attachment objects to display with the message. Each attachment object can have the following properties:

  • name: The name of the attachment file

  • url: The URL of the attachment

  • type: The MIME type of the attachment (e.g., 'image/png', 'application/pdf')

Image attachments (type starting with "image/") show a thumbnail preview, while other attachments show a document icon with the file name.