Update WhatsAppWeb.js

This commit is contained in:
Adhiraj Singh
2020-06-21 22:24:36 +05:30
committed by GitHub
parent 1ab251d8cc
commit 86ce14764a

View File

@@ -90,9 +90,7 @@ class WhatsAppWeb {
* What to do when you need the phone to authenticate the connection (generate QR code by default)
*/
this.onReadyForPhoneAuthentication = this.generateQRCode
this.onRe
this.encoder = new BinaryCoding.Encoder()
this.encoder = new BinaryCoding.Encoder()
this.decoder = new BinaryCoding.Decoder()
this.unexpectedDisconnect = (err) => { this.close () }
@@ -274,4 +272,4 @@ WhatsAppWeb.prototype.groupMakeAdmin = query.groupMakeAdmin
WhatsAppWeb.prototype.groupInviteCode = query.groupInviteCode
module.exports = WhatsAppWeb
module.exports = WhatsAppWeb