OpenWA icon

OpenWA

Interact with OpenWA WhatsApp API Gateway

Actions138

Chat → Mark Read

AI-generated

Summary

Mark a WhatsApp chat as read for the selected session. With Baileys, optionally acknowledge specific message IDs; without them, only the newest message still held in memory receives a read receipt.

Inputs

  • Session Name or ID (required) — Select the session that owns the chat, or provide its ID using an expression.
  • Chat Name or ID (required) — Select the chat or provide its ID (for example, 628123456789@c.us or a group ID ending in @g.us). The picker lists up to 1,000 chats.
  • Message IDs — Optional comma-separated IDs, a JSON array, or an expression resolving to an array, with a maximum of 100 IDs. Baileys acknowledges these messages individually; if omitted, it acknowledges only the newest message still in memory. The option is ignored by whatsapp-web.js, which marks the chat read at chat level.

Output shape

A single item containing the API response.

The operation sends the selected chat and, when provided, message IDs to the session's chat-read endpoint. A restarted Baileys session has no in-memory message to acknowledge when no IDs are supplied.

Links

Discussion