Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@chrisrodz
Copy link
Contributor

Summary

Add option to disable automatic read receipts for WhatsApp messages. When set to false, Clawdbot will not mark messages as read (blue ticks).

Closes #344

Changes

  • Add sendReadReceipts to WhatsAppConfig and WhatsAppAccountConfig types
  • Add sendReadReceipts to zod schemas for validation
  • Add sendReadReceipts to ResolvedWhatsAppAccount with fallback chain (account → root → true)
  • Pass sendReadReceipts through to monitorWebInbox
  • Gate sock.readMessages() call based on config option

Usage

{
  "channels": {
    "whatsapp": {
      "sendReadReceipts": false
    }
  }
}

Or per-account:

{
  "channels": {
    "whatsapp": {
      "accounts": {
        "personal": {
          "sendReadReceipts": false
        }
      }
    }
  }
}

Behavior

  • Default is true (preserves existing behavior)
  • When false, incoming messages will not be marked as read
  • Follows same pattern as Signal's existing sendReadReceipts option

Testing

  • Build passes (pnpm build)
  • Monitor inbox tests pass

@chrisrodz chrisrodz force-pushed the feat/whatsapp-send-read-receipts-option branch from ebf1f96 to a155d7f Compare January 14, 2026 17:38
chrisrodz and others added 5 commits January 15, 2026 06:22
Add option to disable automatic read receipts for WhatsApp messages.
When set to false, Clawdbot will not mark messages as read (blue ticks).

Closes openclaw#344

Changes:
- Add sendReadReceipts to WhatsAppConfig and WhatsAppAccountConfig types
- Add sendReadReceipts to zod schemas for validation
- Add sendReadReceipts to ResolvedWhatsAppAccount with fallback chain
- Pass sendReadReceipts through to monitorWebInbox
- Gate sock.readMessages() call based on config option

Default behavior (true) is preserved - only explicitly setting false
will disable read receipts.
- Move CronPayload enum to top level (was incorrectly nested)
- Fix all tabs to spaces
- Align case statements consistently
@steipete steipete force-pushed the feat/whatsapp-send-read-receipts-option branch from a155d7f to 728cd5e Compare January 15, 2026 06:27
@steipete steipete merged commit 6bcb89c into openclaw:main Jan 15, 2026
38 of 42 checks passed
@steipete
Copy link
Contributor

Landed via temp rebase onto main.\n\n- Gate: pnpm lint && pnpm build && pnpm test (initial failure: gateway.wizard.e2e EADDRINUSE; reran single test passed)\n- Land commit: 728cd5e\n- Merge commit: 6bcb89c\n\nThanks @chrisrodz!

cpojer pushed a commit to cpojer/clawdbot that referenced this pull request Jan 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature: Add whatsapp.sendReadReceipts option to disable automatic read receipts

2 participants