Documentation Index
Fetch the complete documentation index at: https://mintlify.com/whiskeysockets/Baileys/llms.txt
Use this file to discover all available pages before exploring further.
Reading Messages
A set of message keys must be explicitly marked read now. You cannot mark an entire ‘chat’ read as it were with Baileys Web. This means you have to keep track of unread messages.Mark Messages as Read
The message ID is the unique identifier of the message that you are marking as read. On a
WAMessage, the messageID can be accessed using messageID = message.key.id.Message Key Structure
TheWAMessageKey contains the following properties:
Mark Chat Read/Unread
While you can’t mark an entire chat as read directly, you can usechatModify with the last message:
You need to provide
lastMessages array containing message metadata with the key and messageTimestamp properties.