baldarn / whatsapper

A simple web api for whatsapp-web.js
MIT License
16 stars 1 forks source link

Sample to send message #3

Closed DEVIDTR closed 4 months ago

DEVIDTR commented 5 months ago

Hi,

I am not able to send a massage using curl:

curl -H "Content-Type: application/json" -X POST -d '{"command":"sendMessage","params": ["Hello @PHONE_NUMBER"]}' http://IP:4000/command

Do I miss something?

baldarn commented 5 months ago

hi, for the function sendMessage you must pass 2 parameters: the chat_id and the message

try this ;0