Skip to content

Commit

Permalink
fixed qr scan issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ookamiiixd committed Nov 4, 2021
1 parent a958727 commit 3f73339
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/whatsapp.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ const getChats = (session, type) => {
const createExistedSession = async session => {
let wa = new WAConnection()

wa.version = [3, 3234, 9]
wa.browserDescription = ['Windows', 'Chrome', '10']
wa.loadAuthInfo(path.join(__dirname, 'sessions', `${session}.json`))

Expand All @@ -43,6 +44,7 @@ const createExistedSession = async session => {
const createSession = async (socket, session) => {
let wa = new WAConnection()

wa.version = [3, 3234, 9]
wa.browserDescription = ['Windows', 'Chrome', '10']

let timeout = setTimeout(() => {
Expand Down

0 comments on commit 3f73339

Please sign in to comment.