Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

next #762

Merged
merged 14 commits into from
Jun 10, 2023
Merged

next #762

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@bot-whatsapp/root",
"version": "0.1.26",
"version": "0.1.28",
"description": "Bot de wahtsapp open source para MVP o pequeños negocios",
"main": "app.js",
"private": true,
Expand Down
3 changes: 2 additions & 1 deletion packages/provider/src/baileys/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"dependencies": {
"@adiwajshing/baileys": "4.4.0",
"@adiwajshing/baileys": "github:WhiskeySockets/Baileys",
"@adiwajshing/keyed-db": "^0.2.4",
"wa-sticker-formatter": "4.3.2"
}
}
13 changes: 13 additions & 0 deletions packages/provider/src/meta/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,19 @@ class MetaWebHookServer extends EventEmitter {
}
this.emit('message', responseObj)
}

if (message.type === 'interactive') {
const body = message.interactive?.button_reply?.title || message.interactive?.list_reply?.id;
const title_list_reply = message.interactive?.list_reply?.title;
const responseObj = {
type: 'interactive',
from: message.from,
to,
body,
title_list_reply,
}
this.emit('message', responseObj);
}

if (message.type === 'image') {
const body = generateRefprovider('_event_image_')
Expand Down
3 changes: 2 additions & 1 deletion starters/apps/base-baileys-json/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@
"@bot-whatsapp/database": "latest",
"@bot-whatsapp/provider": "latest",
"@bot-whatsapp/portal": "latest",
"@adiwajshing/baileys": "4.4.0",
"mime-types": "2.1.35",
"@adiwajshing/baileys": "github:WhiskeySockets/Baileys",
"@adiwajshing/keyed-db": "^0.2.4",
"wa-sticker-formatter": "4.3.2"
},
"author": "",
Expand Down
4 changes: 2 additions & 2 deletions starters/apps/base-baileys-memory/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
"@bot-whatsapp/database": "latest",
"@bot-whatsapp/provider": "latest",
"@bot-whatsapp/portal": "latest",
"@adiwajshing/baileys": "4.4.0",
"mime-types": "2.1.35",
"@adiwajshing/baileys": "github:WhiskeySockets/Baileys",
"@adiwajshing/keyed-db": "^0.2.4",
"wa-sticker-formatter": "4.3.2"
},
"author": "",
Expand Down
3 changes: 2 additions & 1 deletion starters/apps/base-baileys-mongo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@
"@bot-whatsapp/database": "latest",
"@bot-whatsapp/provider": "latest",
"@bot-whatsapp/portal": "latest",
"@adiwajshing/baileys": "4.4.0",
"mime-types": "2.1.35",
"mongodb": "^4.12.1",
"@adiwajshing/baileys": "github:WhiskeySockets/Baileys",
"@adiwajshing/keyed-db": "^0.2.4",
"wa-sticker-formatter": "4.3.2"
},
"author": "",
Expand Down
4 changes: 2 additions & 2 deletions starters/apps/base-baileys-mysql/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
"@bot-whatsapp/database": "latest",
"@bot-whatsapp/provider": "latest",
"@bot-whatsapp/portal": "latest",
"@adiwajshing/baileys": "4.4.0",
"mime-types": "2.1.35",
"mysql2": "^2.3.3",
"@adiwajshing/baileys": "github:WhiskeySockets/Baileys",
"@adiwajshing/keyed-db": "^0.2.4",
"wa-sticker-formatter": "4.3.2"
},
"author": "",
Expand Down