Message
The message object is the very soul of a conversation. It encapsulates all the information needed in order to represent a single entry on a message list.
Messages are stored in the rocketchat_message
collection on MongoDB.
The IMessage
interface represents the structure of a message object in the Rocket.Chat It defines the properties and their types that can be associated with a message sent. You can check the IMessage
interface here.
Message Object
Fields
The message object contains these fields.
The user presented on
u
andeditedBy
fields are a simplified version of the user information: (_id
: The user id,username
: The username, name: The name)The URL metadata contains several informational fields: (
url
: The URL itself (just as it appears on the message),meta
: URL metadata (varies accord to the URL),headers
: Some HTTP headers (varies accord to the URL),parsedUrl
: The parsed URL broken into its parts)
Message Type
Some of the message types are listed below. A full list of the message-type property can be found here
Attachment Object
The attachment object is fully described here
Last updated