mirror of
https://github.com/cheveguerra/bot-whatsapp.git
synced 2026-04-18 19:49:16 +00:00
fix: arreglando dir y varios mensajes en dialog flow essential
This commit is contained in:
@@ -111,11 +111,19 @@ class DialogFlowContext extends CoreClass {
|
||||
return
|
||||
}
|
||||
|
||||
const ctxFromDX = {
|
||||
/* const ctxFromDX = {
|
||||
answer: queryResult?.fulfillmentText,
|
||||
}
|
||||
} */
|
||||
|
||||
this.sendFlowSimple([ctxFromDX], from)
|
||||
const arrayMsg = queryResult['fulfillmentMessages']
|
||||
.map((a) => {
|
||||
if (a.message === 'text') {
|
||||
return { answer: a.text.text[0] }
|
||||
}
|
||||
})
|
||||
.filter((e) => e)
|
||||
|
||||
this.sendFlowSimple(arrayMsg, from)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user