mirror of
https://github.com/cheveguerra/bot-whatsapp.git
synced 2026-04-20 04:29:16 +00:00
Update dialogflow.class.js
This commit is contained in:
@@ -108,7 +108,7 @@ class DialogFlowContext extends CoreClass {
|
|||||||
answer: queryResult?.fulfillmentText,
|
answer: queryResult?.fulfillmentText,
|
||||||
} */
|
} */
|
||||||
|
|
||||||
const arrayMsg = queryResult['fulfillmentMessages']
|
const messagesFromCX = queryResult['fulfillmentMessages']
|
||||||
.map((a) => {
|
.map((a) => {
|
||||||
if (a.message === 'text') {
|
if (a.message === 'text') {
|
||||||
return { answer: a.text.text[0] }
|
return { answer: a.text.text[0] }
|
||||||
@@ -116,7 +116,7 @@ class DialogFlowContext extends CoreClass {
|
|||||||
})
|
})
|
||||||
.filter((e) => e)
|
.filter((e) => e)
|
||||||
|
|
||||||
this.sendFlowSimple(arrayMsg, from)
|
this.sendFlowSimple(messagesFromCX, from)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user