MessagePremium
Represents a Chat message.
- You are required to provide the
author
field.- Local users are displayed to the right in left-to-right languages and to the left in right-to-left languages.
- If
typing
is set totrue
, the Chat displays a typing indicator instead of text.
Name | Type | Default | Description |
---|---|---|---|
attachmentLayout? |
|
The layout that will be used for displaying message attachments, if any (see example). | |
attachments? |
|
(Optional) The message attachments (see example). | |
author |
|
The author of the message. | |
files? |
|
Files attached to the message. | |
id |
|
The unique identifier of the message. | |
isDeleted? |
|
Indicates whether the message has been deleted. | |
isLoading? |
|
A Boolean value which indicates if the message is in a loading state.
If set to | |
isPinned? |
|
A message property that sets the message as pinned. | |
pinnedAt? |
|
The date and time when the message was pinned. | |
pinnedBy? |
|
The user who pinned the message. | |
replyToId? |
|
The ID of the message this message is replying to. | |
selectionIndex? |
| ||
status? |
|
An optional status string for the message. The status is displayed when the message is selected—either by clicking on it or by using the keyboard navigation shortcuts. | |
suggestedActions? |
|
The suggested quick actions that will be displayed below this message (see example).
| |
text? |
|
(Optional) The text for the message. For example, certain messages can contain only attachments or quick actions. | |
timestamp? |
|
The time at which the message was composed. | |
typing? |
|
A Boolean value which indicates if the message is still being typed by the user.
If set to |