mirror of
https://github.com/cheveguerra/bot-whatsapp.git
synced 2026-04-20 12:39:24 +00:00
build: ⚡ fix
This commit is contained in:
@@ -97,13 +97,21 @@ class DialogFlowContext extends CoreClass {
|
|||||||
})
|
})
|
||||||
|
|
||||||
customPayload = {
|
customPayload = {
|
||||||
media: fields?.media?.stringValue,
|
options: {
|
||||||
buttons: mapButtons,
|
media: fields?.media?.stringValue,
|
||||||
|
buttons: mapButtons,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const ctxFromDX = {
|
||||||
|
...customPayload,
|
||||||
|
answer: fields?.answer?.stringValue,
|
||||||
|
}
|
||||||
|
this.sendFlow([ctxFromDX], from)
|
||||||
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
const ctxFromDX = {
|
const ctxFromDX = {
|
||||||
...customPayload,
|
|
||||||
answer: queryResult?.fulfillmentText,
|
answer: queryResult?.fulfillmentText,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user