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