Conversation that the message is in.
Fired when the properties or the body of the message has been updated.
Parameters:
data
- info object provided with the event. It has the following properties:Aggregated information about the message delivery statuses across all participants of a conversation..
Return all media attachments, except email body/history attachments, without temporary urls.
Custom attributes of the message.
Name of the user that sent the message.
Body of the message.
Unique identifier of ContentTemplate for this message.
Date this message was created on.
Date this message was last updated on.
Index of this message in the conversation's list of messages.
By design, the message indices may have arbitrary gaps between them, that does not necessarily mean they were deleted or otherwise modified - just that messages may have some non-contiguous indices even if they are being sent immediately one after another.
Trying to use indices for some calculations is going to be unreliable.
To calculate the number of unread messages, it is better to use the Read Horizon API. See Conversation.getUnreadMessagesCount for details.
Identity of the last user that updated the message.
One of the attached media (if present).
The server-assigned unique identifier of the authoring participant.
The server-assigned unique identifier for the message.
Message subject. Used only in email conversations.
Type of the message.
Get the ChannelMetadata for this message. Resolves to null
if
the message doesn't have any channel metadata.
Get the ContentData for this message. Resolves to null
when
Message.contentSid is null.
Get the delivery receipts of the message.
Get a media descriptor for an email body attachment of a provided type. Allowed body types are returned in the Conversation.limits().emailBodiesAllowedContentTypes array.
Type of email body to request, defaults to text/plain
.
Get a media descriptor for an email history attachment of a provided type. Allowed body types are returned in the Conversation.limits().emailHistoriesAllowedContentTypes array.
Type of email history to request, defaults to text/plain
.
Return a (possibly empty) array of media matching a specific set of categories. Allowed category is so far only 'media'.
Array of categories to match.
Array of media descriptors matching given categories.
Get the participant who is the author of the message.
Get content URLs for all media attached to the message.
Get content URLs for all media attachments in the given set using a single operation.
Set of media attachments to query content URLs.
Get content URLs for all media attachments in the given set of media sids using a single operation.
Set of media sids to query for the content URL.
Remove the message.
Edit the message body.
New body of the message.
A message in a conversation.