mirror of
https://github.com/cheveguerra/bot-whatsapp.git
synced 2026-04-18 03:29:15 +00:00
fix(contexts): 🔥 added buttons
This commit is contained in:
@@ -93,8 +93,9 @@ class DialogFlowContext extends CoreClass {
|
||||
if (msgPayload && msgPayload?.payload) {
|
||||
const { fields } = msgPayload.payload
|
||||
const mapButtons = fields?.buttons?.listValue?.values.map((m) => {
|
||||
return m?.structValue?.fields?.body?.stringValue
|
||||
return { body: m?.structValue?.fields?.body?.stringValue }
|
||||
})
|
||||
|
||||
customPayload = {
|
||||
media: fields?.media?.stringValue,
|
||||
buttons: mapButtons,
|
||||
|
||||
Reference in New Issue
Block a user