Skip to content

Commit

Permalink
Merge pull request #342 from MikelCalvo/fix/general_fixes
Browse files Browse the repository at this point in the history
Fixed whatsapp-web.js errors
  • Loading branch information
navopw authored Jun 27, 2024
2 parents 3096f7d + 5743ea2 commit 37ca430
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 11 deletions.
23 changes: 14 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
},
"license": "MIT",
"dependencies": {
"aws-sdk": "^2.1467.0",
"aws-sdk": "^2.1649.0",
"chatgpt": "^5.2.5",
"dotenv": "^16.3.1",
"fetch-blob": "^4.0.0",
Expand Down
7 changes: 6 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ let botReadyTimestamp: Date | null = null;

// Entrypoint
const start = async () => {
const wwebVersion = "2.2412.54";
cli.printIntro();

// WhatsApp Client
Expand All @@ -26,7 +27,11 @@ const start = async () => {
},
authStrategy: new LocalAuth({
dataPath: constants.sessionPath
})
}),
webVersionCache: {
type: "remote",
remotePath: `https://raw.githubusercontent.com/wppconnect-team/wa-version/main/html/${wwebVersion}.html`
}
});

// WhatsApp auth
Expand Down

0 comments on commit 37ca430

Please sign in to comment.