mirror of
https://github.com/cheveguerra/bot-whatsapp.git
synced 2026-04-20 20:49:15 +00:00
diaglogflow wit media
This commit is contained in:
3
app.js
3
app.js
@@ -47,6 +47,9 @@ const listenMessage = () => client.on('message', async msg => {
|
||||
if (process.env.DATABASE === 'dialogflow') {
|
||||
const response = await bothResponse(message);
|
||||
await sendMessage(client, from, response.replyMessage);
|
||||
if(response.media){
|
||||
sendMedia(client, from, response.media);
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user