aldinokemal / go-whatsapp-web-multidevice

API for Whatsapp Web Multi Device Version, Support UI & Webhook
MIT License
582 stars 245 forks source link

🐞 Message is not sent if there's punctuation after a mention #186

Closed traysh closed 2 months ago

traysh commented 2 months ago

What happened?

If there's a dot after a mention, the message is not sent to a whatsapp group. Example: "I'll refer to him as @938372634."

Removing the '.' after the mention makes it work. This can be tested on the web interface.

Reproduction Steps

1.open the web interface
2.go to send message
3.change the type to group and enter the required data
4.in the message field, enter: "I'll refer to him as @938372634."
5.send the message
6.the web interface will show a success message, but the message will **not** appear in the conversation

Relevant log output

No response

Screenshots or Additional Context

No response

Application Version

4.17.0

Verification

traysh commented 2 months ago

Hm, I see the behavior is different on whatsapp web and on the Android client. On whatsapp web, no message is shown. But on the Android client, the message is shown without the mention be translated to the user's name, just "@938372634."

aldinokemal commented 2 months ago

simple, just remove punctuation don't make something easy to much effort

traysh commented 2 months ago

Yes, that's what I'm doing as a workaround to make it work. But it is a workaround, not a proper fix =)

The image bellow was taken from the android app. As you can see, if a mention is sent from the Android app, it supports adjacent punctuation.

share_8016674629495697289

Removing punctuation is not the best solution, as it changes the text A text without . looks strange <= see?

aldinokemal commented 2 months ago

interesting, I'll investigate it

aldinokemal commented 2 months ago

https://github.com/aldinokemal/go-whatsapp-web-multidevice/releases/tag/v4.18.0

traysh commented 2 months ago

Perfect, thank you!