whatsapp-api-tutorial icon indicating copy to clipboard operation
whatsapp-api-tutorial copied to clipboard

Receive back messages via webhook

Open doronmas opened this issue 5 years ago • 5 comments

Hello Nur When the phone to which the message is sent returns a reply Can we receive this messages back via webhook ?

Thanks Doron

doronmas avatar Jan 26 '21 06:01 doronmas

I have a plan to make a tutorial about it, but currently still finding the time.

ngekoding avatar Jan 30 '21 06:01 ngekoding

Thanks

doronmas avatar Jan 31 '21 17:01 doronmas

+1 - follow for tutorial -

mzayn avatar Mar 10 '21 23:03 mzayn

Hellow I hope it helps

1 - create a config.json file { "port":8000, "webhook":{ "enabled":true, "path":"http://localhost/webhook-wa/index.php" } }

2 - insert into app.js

client.on('message', msg => { console.log(msg); if (config.webhook.enabled) { console.log(msg); axios.post(config.webhook.path, { msg }) } });

leoteixeira2016 avatar Jun 07 '21 17:06 leoteixeira2016

Hellow I hope it helps

1 - create a config.json file { "port":8000, "webhook":{ "enabled":true, "path":"http://localhost/webhook-wa/index.php" } }

2 - insert into app.js

client.on('message', msg => { console.log(msg); if (config.webhook.enabled) { console.log(msg); axios.post(config.webhook.path, { msg }) } });

can i see the php code?

diazzaid avatar Jul 03 '21 08:07 diazzaid