Skip to content

Webhook not firing for self-messages (fromMe: true) on same session number #168

@cavemanharris

Description

@cavemanharris

Webhook not firing for self-messages (fromMe: true) on same session number

Summary

When a WhatsApp user sends a message to themselves (i.e. opens their own chat and sends a message on the same number that OpenWA is running on), the webhook is not fired. The message does not appear in the webhook receiver at all — not even as a raw payload.

Environment

  • OpenWA version: (latest version)
  • Node.js version: (latest version)
  • OS: Linux (hosted)
  • Webhook transport: HTTP POST

Steps to Reproduce

  1. Register a WhatsApp session in OpenWA on number A
  2. Configure a webhook with message.sent, message.received and * events
  3. From the same device running number A, open the self-chat and send a message
  4. Observe that the webhook endpoint receives nothing

Expected Behaviour

The webhook should fire with fromMe: true when the session owner sends a message to themselves, just as it fires for messages sent to other contacts.

Actual Behaviour

No webhook event is fired. The endpoint receives nothing. This is confirmed by raw payload logging at the very top of the webhook receiver, before any processing logic — the file is simply not written to.

What Does Work

  • Webhook fires correctly for message.received from other numbers ✅
  • Webhook fires correctly for session.status events ✅
  • message.sent is registered in the webhook events array ✅
  • The * wildcard event is also registered ✅

None of these result in a webhook firing for self-messages.

Use Case

This is needed for owner self-service scenarios — for example, a consultant running an AI booking agent on their business WhatsApp number needs to be able to message their own number to query their schedule, check bookings, or interact with their own AI agent. Without this, the only workaround is to use a second phone number, which is impractical.

Workaround Attempted

Registering message.sent and * as webhook events — neither results in the webhook firing for self-messages on the same session number.

Request

Please either:

  1. Fire the webhook for self-messages with fromMe: true so the receiving application can handle them, or
  2. Provide an alternative API endpoint or event that captures self-messages so they can be processed by the webhook consumer

Otherwise, thank you. This is a magnificent product.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions