[NOWEB] Enable mentionsEveryOne feature
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.
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!
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:
If we could really need a placeholder, I think that a dot would be great, since we usually use it inside group messages.
@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)
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