[ADD] Session restore functionality

This commit is contained in:
Pedro Lopez
2019-03-17 05:42:29 -04:00
parent 96cebbae5e
commit a7a7034e75
3 changed files with 66 additions and 14 deletions

View File

@@ -7,7 +7,8 @@ exports.UserAgent = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_0) AppleWebKit
exports.DefaultOptions = {
puppeteer: {
headless: true
}
},
session: false
}
exports.Status = {
@@ -18,6 +19,7 @@ exports.Status = {
exports.Events = {
AUTHENTICATED: 'authenticated',
AUTHENTICATION_FAILURE: 'auth_failure',
READY: 'ready',
MESSAGE_CREATE: 'message',
QR_RECEIVED: 'qr',