Skip to content

Commit

Permalink
Fixed whatsapp-web.js implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
MikelCalvo committed Jun 27, 2024
1 parent dab6eaa commit 5743ea2
Showing 1 changed file with 6 additions and 1 deletion.
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 5743ea2

Please sign in to comment.