Message object

This object represents a message of a WhatsApp chat.

This description will show the fields of message object.

Field

Type

Description

_id

string

object id

message_id

string

id of message

istance_number

string

number of instance (like instance_whatsapp.istance_number)

body

string

text message for type "chat", or link to download the file for "ptt", "image", "audio", "video" and "document", or latitude and longitude for "location", or message "[Call]" for "call_log"

body_translate

string

text message for type "chat" translated according to the language set in instance_whatsapp.translate_code

type

string

type of the message. Possible value: chat, image, ptt, document, audio, video, location, call_log

senderName

string

Sender name.

fromMe

boolean

if a message is outgoing or incoming. true - outgoing, false - incoming

author

string

Author ID of the message, useful for groups. Same sintax Like chat.chatId

time

number

send time in unix timestamp in seconds

chatId

number

chat Id owner for this message. Like chat.chatId

messageNumber

number

sequence number of the message

queueNumber

number

when present it represents the id of the queue of sent messages

status_queued

boolean

if true the message is in the queue of send messages

status_queued_time

number

time in unix timestamp in seconds when the message is in the queue of send messages

status_sent

boolean

if true the message is sent

status_sent_time

number

time in unix timestamp in seconds when the message has been sent

status_delivered

boolean

if true the message is delivered

status_delivered_time

number

time in unix timestamp in seconds when the message has been delivered

status_viewed

boolean

if true the message is viewed

status_viewed_time

number

time in unix timestamp in seconds when the message has been viewed