[GOWS] - Support Mentions
- Mentions Not Working Properly
Describe the bug
The mentions functionality in WAHA is not working correctly. When sending messages with mentions using the official documented format, users do not receive mention notifications in WhatsApp. The issue appears to be that WAHA is not generating the required mentionedJID field in the contextInfo of the message, which is essential for WhatsApp to trigger mention notifications.
Version
{
"version": "2025.8.1",
"engine": "GOWS",
"tier": "PLUS"
}
Steps
To Reproduce Steps to reproduce the behavior:
- Send a POST request to
/api/sendTextwith mentions following the official documentation format - Include both
@numberin the text and thementionsarray as documented - Check the resulting message event in WhatsApp
- Observe that users mentioned do not receive notification
- Analyze the message structure and notice missing
mentionedJIDincontextInfo
Expected behavior
When sending a message with mentions using the documented format, the system should:
- Generate a message with
mentionedJIDarray in thecontextInfo - Users mentioned should receive push notifications
- The message should appear as a mention in the recipient's chat
Requests - Responses
Request sent (following official documentation):
POST /api/sendText
{
"session": "default",
"chatId": "[email protected]",
"text": "Hi there! @2132132130",
"mentions": [
"[email protected]"
]
}
Actual Response Event (BROKEN):
{
"extendedTextMessage": {
"text": "Hi there! @2132132130",
"contextInfo": {
"expiration": 0,
"disappearingMode": {
"initiator": 0,
"trigger": 1,
"initiatedByMe": false
}
// ❌ MISSING: "mentionedJID" field
}
}
}
Expected Response Event (WORKING):
{
"extendedTextMessage": {
"text": "Hi there! @2132132130",
"contextInfo": {
"mentionedJID": [
"[email protected]"
],
"expiration": 0,
"disappearingMode": {
"initiator": 0,
"trigger": 1,
"initiatedByMe": false
}
}
}
}
Root Cause Analysis
The issue is that WAHA is not properly converting the mentions array from the request payload into the mentionedJID field in the WhatsApp message contextInfo.
Key findings:
- The
mentionsfield in the request uses format:["[email protected]"] - WhatsApp requires
mentionedJIDin format:["[email protected]"] - WAHA is not performing this conversion automatically
- Without
mentionedJID, WhatsApp does not trigger mention notifications
Impact
- High Priority: Core functionality not working as documented
- User Experience: Users don't receive mention notifications
- Documentation: Official examples don't work as expected
- Engine Affected: GOWS (possibly others)
Suggested Fix
WAHA should automatically:
- Parse the
mentionsarray from the request - Convert
@c.usformat to@s.whatsapp.netformat - Add the
mentionedJIDfield to the messagecontextInfo - Ensure compatibility with WhatsApp's mention notification system
Additional context
- This affects group messaging functionality significantly
- The issue is reproducible across different group sizes
- WEBJS engine handles mentions correctly, suggesting this is GOWS-specific
- The official documentation format should work without requiring workarounds
Environment:
- Engine: GOWS
- Tier: PLUS
- Version: 2025.8.1
- Use case: Telegram-WhatsApp bridge with mention forwarding
Let's see how many and
supporters needs the feature and prioritize it based on that.
Comment with "+1" if you need it!
+1
+1