Interface which represents an attachment which can be added to a message.


  • IMessageAttachment


actionButtonsAlignment?: MessageActionButtonsAlignment

States how the action buttons are aligned.

actions?: IMessageAction[]

Allows displaying action items, such as buttons, on the attachment.

audioUrl?: string

Audio file to play, only supports what html's

Author portion of the attachment.

collapsed?: boolean

Causes the image, audio, and video sections to be hidding when this is true.

color?: string

The color you want the order on the left side to be, supports any valid background-css value.

description?: string

Allows users to describe what the attachment is.

The field property of the attachments allows for "tables" or "columns" to be displayed on messages.

imageUrl?: string

The image to display, will be "big" and easy to see.

text?: string

The text to display for this attachment.

thumbnailUrl?: string

An image that displays to the left of the text, looks better when this is relatively small.

timestamp?: Date

Displays the time next to the text portion.

timestampLink?: string

Only applicable if the timestamp is provided, as it makes the time clickable to this link.

Title portion of the attachment.

type?: string

The type of attachment this is, although hardly used and only used for files.

videoUrl?: string

Video file to play, only supports what html's

Generated using TypeDoc