The Message Object
The message object represents a message sent or received on WhatsApp.
Attributes
A unique identifier for the message, containing information about the chat, sender, and message details.
The unique identifier of the organization that owns the WhatsApp account.
The delivery and read status acknowledgment of the message.
The WhatsApp ID of the message author (format: {phone_number}@c.us
).
The text content of the message. For media messages, this represents the caption.
Indicates if the message was sent as a broadcast message.
The type of device used to send the message (e.g., “android”, “ios”, “web”).
Indicates whether the message has been flagged for attention or review.
The duration in seconds for audio or video messages. Null for other message types.
The number of times this message has been forwarded.
The WhatsApp ID of the message sender (format: {phone_number}@c.us
).
Indicates if the message was sent from the organization’s WhatsApp account.
Indicates if the message contains media content (image, video, audio, or document).
Indicates if the message is a reply to another message.
Indicates if the message has received any reactions.
Detailed identification information for the message.
Group invitation details if the message contains a group invite. Null otherwise.
Indicates if the message is configured to disappear after a set time.
Indicates if the message was forwarded from another chat.
Indicates if the message contains a GIF animation.
Indicates if the message has been starred/favorited.
Indicates if the message is a status update.
JSON string containing an array of URLs found in the message.
Location information if the message contains a shared location.
Unique identifier for media content if present.
Array of WhatsApp IDs (format: {phone_number}@c.us
) mentioned in the message.
The type of message content. Possible values: chat
, image
, video
, audio
, document
, ptt
.
An array of vCards (virtual contact cards).
The unique identifier of the chat/group where the message was sent.
A unique identifier for the broadcast session.
Is set to true
if message is deleted. It is null
otherwise.
Details about media content if present in the message.
The original content of the message before editing.
The ID of the message to which this message is replying to.
Phone from which the message was sent.
ID of the sent message.
Information about message delivery and read status.
Details about message flagging status.
Information about poll messages.
Results of the poll voting.
Email address of the user who sent the message through Periskope.
ISO 8601 formatted timestamp when the message was sent.
ISO 8601 formatted timestamp when the message was last updated.
A unique identifier for the message, matching the id.id
field.
Array of reaction objects containing information about message reactions.
Was this page helpful?