The type of the message content payload
The unique server-side message ID
The message content payload
The channel identifier where this message belongs
The registered message type identifier (e.g. 'RC:TxtMsg')
Whether this message type is persisted in storage
Whether this message type is counted in unread count
Whether this is a status (transient) message
The local client-side message ID
Whether a read receipt has been sent for this message
Timestamp (ms) when the message was sent
The user ID of the message sender
Key-value metadata (expansion) attached to the message
Information about message modification, or null if not modified
Whether the message has been changed
Whether read receipt is requested for this message
List of target user IDs for directed messages
Whether this message should not update the channel's last message
The direction of the message (sent or received)
Whether push notification is disabled for this message
Updates or adds metadata (expansion) key-value pairs for this message.
Key-value pairs to set or update
A promise resolving to the operation result
Deletes metadata (expansion) keys from this message.
The metadata keys to delete
A promise resolving to the operation result
Requests speech-to-text conversion for this voice message. The result will be delivered via {@link MessageHandlerParams.onSpeechToTextComplete}.
A promise resolving to the operation result
Requests the full content of a stream message. Stream message chunks will be delivered via MessageHandlerParams.onStreamMessageRequestDelta.
A promise resolving to the operation result
Opens the remote media URL for this message in a new browser tab via window.open.
Supported for message types that register CustomMessageRegistration.remoteFileUrlField
(built-in image, file, GIF, HD voice, short video, and custom media types).
In non-browser environments or when window.open is unavailable, returns failure with
{@link ErrorCode.NOT_SUPPORT}.
Success when the URL was opened, or an error (empty URL, unsupported message type, or no window.open)
Represents a chat message with typed content. Messages are the fundamental data unit for communication in channels.