diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9732b152..81832171 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,4 +1,9 @@ -exclude: '^src/dashboard' +exclude: | + (?x)^( + ^src/dashboard/.*| + ^src/core/engines/webjs/.*html + )$ + repos: - repo: local hooks: diff --git a/docs/site/content/en/docs/overview/changelog.md b/docs/site/content/en/docs/overview/changelog.md index ad0707ed..fce692f2 100644 --- a/docs/site/content/en/docs/overview/changelog.md +++ b/docs/site/content/en/docs/overview/changelog.md @@ -36,6 +36,14 @@ If you wish to get and read Release Notes - read them on one of our platforms, * ### 🐛 Fixes ---- +Fix send video issue `POST /api/sendVideo` in **WEBJS**. +- Issue: [#321](https://github.com/devlikeapro/whatsapp-http-api/issues/321) +- Issue: [#328](https://github.com/devlikeapro/whatsapp-http-api/issues/328) +- Build: `2024.5.6` +- Engine: **WEBJS** + +---- + Use local cache for **WEBJS** engine (versions file). - Issue: [#316](https://github.com/devlikeapro/whatsapp-http-api/issues/316) - Build: `2024.5.4` diff --git a/src/core/engines/webjs/2.2412.54-videofix.html b/src/core/engines/webjs/2.2412.54-videofix.html new file mode 100644 index 00000000..aa5fdcf5 --- /dev/null +++ b/src/core/engines/webjs/2.2412.54-videofix.html @@ -0,0 +1,316 @@ +WhatsApp Web
WhatsApp
 End-to-end encrypted
\ No newline at end of file diff --git a/src/core/engines/webjs/session.webjs.core.ts b/src/core/engines/webjs/session.webjs.core.ts index 7a19ac48..316aaae7 100644 --- a/src/core/engines/webjs/session.webjs.core.ts +++ b/src/core/engines/webjs/session.webjs.core.ts @@ -82,7 +82,7 @@ export class WhatsappSessionWebJSCore extends WhatsappSession { executablePath: this.getBrowserExecutablePath(), args: this.getBrowserArgsForPuppeteer(), }, - webVersion: '2.2412.54', + webVersion: '2.2412.54-videofix', webVersionCache: { type: 'local', path: path, diff --git a/src/version.ts b/src/version.ts index bb4adeae..917b90ca 100644 --- a/src/version.ts +++ b/src/version.ts @@ -33,7 +33,7 @@ export function getEngineName(): string { } export const VERSION: WAHAEnvironment = { - version: '2024.5.5', + version: '2024.5.6', engine: getEngineName(), tier: getWAHAVersion(), browser: getBrowserExecutablePath(),