Chat
Extendsproto.IConversation with additional Baileys-specific fields.
string
Chat JID (identifier)Examples:
"1234567890@s.whatsapp.net"(individual chat)"123456789@g.us"(group chat)"status@broadcast"(status broadcasts)
number | Long
Timestamp of the conversation
number
Unix timestamp of when the last message was received in the chat (Baileys extension)
number
Number of unread messages
boolean
Whether the chat is archived
number
Pin position (0 = not pinned, higher = pinned earlier)
number | Long
Unix timestamp when mute expires (0 = not muted)
string
Chat name (for groups, business accounts, or saved contacts)
boolean
Whether the chat is marked as not spam
number
Disappearing messages expiration time in secondsCommon values:
0- disabled86400- 24 hours604800- 7 days7776000- 90 days
number | Long
When disappearing messages setting was last changed
ChatUpdate
Partial update to a chat’s properties.function
Optional condition to check before applying the updateReturns:
true- apply the updatefalse- discard the updateundefined- condition not yet fulfilled, buffer the update
number
Unix timestamp of when the update occurred
Partial<Chat>.
ChatModification
Union type for modifying chat properties. Each modification has a specific structure:Archive/Unarchive
Archive/Unarchive
Pin/Unpin
Pin/Unpin
boolean
required
true to pin, false to unpinMute/Unmute
Mute/Unmute
number | null
required
null- unmute- Unix timestamp - mute until this time
- Duration in seconds - mute for this long from now
Mark Read/Unread
Mark Read/Unread
Delete Message for Me
Delete Message for Me
Star Messages
Star Messages
Push Name Setting
Push Name Setting
Contact Action
Contact Action
Disable Link Previews
Disable Link Previews
Label Actions
Label Actions
Quick Reply
Quick Reply
Supporting Types
LastMessageList
PresenceData
WAPresence
required
Last known presence statusValues:
'unavailable', 'available', 'composing', 'recording', 'paused'number
Unix timestamp of when user was last seen