mark_as_read
Mark a chat as read. Automatically fetches and marks the latest unread message if message_id is not provided. If providing message_id for a group chat, sender_jid must also be provided.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| jid | Yes | The chat to mark as read: a JID or a phone number with country code. | |
| message_id | No | Optional. A message `id` from read_chat_history; it and everything before it are marked read. Omit to mark the latest incoming message. | |
| sender_jid | No | Required with message_id in group chats: that message's `sender_jid` from read_chat_history. |