Message
Represents a chat message with its content, status, and metadata.Unique identifier for the message
ID of the chat this message belongs to
ID of the contact who sent the message
Type of content in the message:
"text", "image", or "audio"Text content of the message (optional for media messages)
Media attachment if the message contains image or audio
Current delivery status of the message
ISO 8601 timestamp when the message was created
ISO 8601 timestamp when the message was last updated
ID of the message this is replying to
Whether this message was forwarded from another chat
Array of emoji reactions to this message
MessageStatus
Represents the delivery and read status of a message.Message is queued for sending
Message is currently being sent
Message has been sent to the server
Message has been delivered to the recipient
Message has been read by the recipient
Message failed to send
MessageContentType
Defines the types of content a message can contain.Plain text message
Image attachment
Audio message or voice note
MediaAttachment
Contains metadata and URLs for media files attached to messages.Unique identifier for the attachment
Type of media file
Remote URL where the media file is stored
URL for a thumbnail version of the media (typically for images)
Width in pixels (for images)
Height in pixels (for images)
File size in bytes
Optional text caption for the media
Audio waveform data for visualization (for audio messages)
Local blob URL for client-side preview before upload
Reaction
Represents an emoji reaction to a message.The emoji used for the reaction
ID of the contact who added the reaction
ISO 8601 timestamp when the reaction was added