waha icon indicating copy to clipboard operation
waha copied to clipboard

[NOWEB] Enable mentionsEveryOne feature

Open johndoely opened this issue 9 months ago • 4 comments

On some versions ago we were able to mention all the participants we wanted without actually typing their @ inside the message text/caption (ghost mention). So we would get participant list and put its numbers inside mentions field.

Example: { "session": "mySession", "chatId": "[email protected]", "text": "Hello All!", "mentions": [ "[email protected]", "[email protected]", "[email protected]" ] }

I was trying on WebJS and NOWEB and it is not possible anymore.

Could you enable this again? It would be also a good idea to add an optional parameter when sending content, like mentionsEveryOne:true/false, so we won't need to keep tracking participants list.

patron:PLUS

johndoely avatar Mar 19 '25 23:03 johndoely

You must include the phone numbers for all mentions in text

Try this and let us know for each engine where it works and where it doesn't

{
    "session": "mySession",
    "chatId": "[email protected]",
    "text": "Hello All! @123456789 @987654321 @1020304050",
    "mentions": [
        "[email protected]",
        "[email protected]",
        "[email protected]"
    ]
}

mentionsEveryOne

The main problem with that - we'll need to also add some placeholder, so we know where to put the participant list in the text 🤔 It could somethng like this tho.

{
    "session": "mySession",
    "chatId": "[email protected]",
    "text": "Hello All! {{ mentionsEveryOne }}",
    "mentions": [
        "[email protected]",
        "[email protected]",
        "[email protected]"
    ]
}

Let's test it first and see if it works with manually mentioning all!

patron:PRO

devlikepro avatar Mar 20 '25 04:03 devlikepro

The point of the request is the ghost mentioning, where people are mentioned but their @numbers are not inserted into the text message, so I can send just "Hello" and everyone (in the mentions list) would have the @ on the notification, like this: Image

If we could really need a placeholder, I think that a dot would be great, since we usually use it inside group messages.

patron:PLUS

johndoely avatar Mar 26 '25 18:03 johndoely

@johndoely is it possible to "mention everyone" using official mobile app? if not - only putting all participants in the group would solve the problem (may be with the placeholder)

patron:PRO

devlikepro avatar Mar 27 '25 05:03 devlikepro

In this case we could try the placeholder, but I was searching the web and saw this one running ghost mentions in their api, and they also use Baileys, so there must be a hidden mechanism... https://github.com/EvolutionAPI/evolution-api/blob/427c99499394d3894e4b065626323c45e91022e4/src/validate/message.schema.ts#L80

johndoely avatar Mar 28 '25 22:03 johndoely

https://github.com/devlikeapro/waha/issues/1377 https://github.com/devlikeapro/waha/issues/1372

patron:PRO

devlikepro avatar Sep 26 '25 03:09 devlikepro