mirror of
https://github.com/cheveguerra/bot-whatsapp.git
synced 2026-04-19 12:09:15 +00:00
working ws provider
This commit is contained in:
@@ -47,8 +47,9 @@ class BotClass {
|
||||
* @param {*} ctxMessage
|
||||
*/
|
||||
handleMsg = ({ body, to, from }) => {
|
||||
this.databaseClass.saveLog(body)
|
||||
this.databaseClass.save(body)
|
||||
const messageToSend = this.flowClass.find(body) || []
|
||||
console.log(messageToSend)
|
||||
if (Array.isArray(messageToSend)) this.sendFlow(messageToSend, from)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user