mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
separated out connect & receiving chats
This commit is contained in:
@@ -178,9 +178,7 @@ class WhatsAppWeb {
|
||||
QR.generate(str, {small: true})
|
||||
}
|
||||
|
||||
log (text) {
|
||||
console.log (`[Baileys] ${text}"`)
|
||||
}
|
||||
log (text) { console.log (`[Baileys] ${text}`) }
|
||||
}
|
||||
|
||||
/* Import the rest of the code */
|
||||
@@ -203,6 +201,8 @@ WhatsAppWeb.prototype.decodeMediaMessage = recv.decodeMediaMessage
|
||||
|
||||
const session = require("./WhatsAppWeb.Session")
|
||||
WhatsAppWeb.prototype.connect = session.connect
|
||||
WhatsAppWeb.prototype.connectSlim = session.connectSlim
|
||||
WhatsAppWeb.prototype.receiveChatsAndContacts = session.receiveChatsAndContacts
|
||||
WhatsAppWeb.prototype.beginAuthentication = session.beginAuthentication
|
||||
WhatsAppWeb.prototype.validateNewConnection = session.validateNewConnection
|
||||
WhatsAppWeb.prototype.respondToChallenge = session.respondToChallenge
|
||||
|
||||
Reference in New Issue
Block a user