aldinokemal / go-whatsapp-web-multidevice

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

🐞 #163

Closed justinthoms closed 4 months ago

justinthoms commented 4 months ago

What happened?

curl \ -X POST http://localhost:3000/send/message \ -H "Content-Type: multipart/form-data" \ -F "phone=6289685028129@s.whatsapp.net" \ -F "message=selamat\n malam" \ -F "reply_message_id=3EB089B9D6ADD58153C561"

here the not enter in new line it get output like selamat\n malam whaen try \n\n its also same

image

Reproduction Steps

1.how
2.
3.
...

Relevant log output

No response

Screenshots or Additional Context

No response

Application Version

4.1.41

Verification

aldinokemal commented 4 months ago

you can try this

curl 'http://localhost:3000/send/message' \ -H 'Accept: application/json, text/plain, */*' \ -H 'Content-Type: application/json' \ --data-raw '{"phone":"6289685028129@s.whatsapp.net","message":"ok\naman\ngood multiline"}'