Commit graph

125 commits

Author SHA1 Message Date
Eddy de Vink
9ee80f4367 docs: explain public image and reproducible build 2026-08-18 10:08:37 +02:00
Eddy de Vink
6dc5a9428b build: publish reproducible patched image 2026-08-18 10:04:02 +02:00
Eddy de Vink
d4aea97dba build: pin patched whatsapp-web.js 2026-08-17 18:20:06 +02:00
dependabot[bot]
e45da166dc
chore(deps): bump docker/setup-buildx-action from 2 to 4 (#136)
Bumps [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action) from 2 to 4.
- [Release notes](https://github.com/docker/setup-buildx-action/releases)
- [Commits](https://github.com/docker/setup-buildx-action/compare/v2...v4)

---
updated-dependencies:
- dependency-name: docker/setup-buildx-action
  dependency-version: '4'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-07-15 13:56:02 +03:00
dependabot[bot]
3eaf1d116f
chore(deps): bump docker/build-push-action from 5 to 7 (#137)
Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 5 to 7.
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/v5...v7)

---
updated-dependencies:
- dependency-name: docker/build-push-action
  dependency-version: '7'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-07-15 13:55:43 +03:00
dependabot[bot]
2161804e57
chore(deps): bump actions/setup-node from 4 to 6 (#138)
Bumps [actions/setup-node](https://github.com/actions/setup-node) from 4 to 6.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/v4...v6)

---
updated-dependencies:
- dependency-name: actions/setup-node
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-07-15 13:55:29 +03:00
dependabot[bot]
c21578feab
chore(deps): bump docker/login-action from 2 to 4 (#139)
Bumps [docker/login-action](https://github.com/docker/login-action) from 2 to 4.
- [Release notes](https://github.com/docker/login-action/releases)
- [Commits](https://github.com/docker/login-action/compare/v2...v4)

---
updated-dependencies:
- dependency-name: docker/login-action
  dependency-version: '4'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-07-15 13:54:30 +03:00
dependabot[bot]
1f668cbf7d
chore(deps): bump docker/setup-qemu-action from 2 to 4 (#140)
Bumps [docker/setup-qemu-action](https://github.com/docker/setup-qemu-action) from 2 to 4.
- [Release notes](https://github.com/docker/setup-qemu-action/releases)
- [Commits](https://github.com/docker/setup-qemu-action/compare/v2...v4)

---
updated-dependencies:
- dependency-name: docker/setup-qemu-action
  dependency-version: '4'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-07-15 13:54:07 +03:00
Anton Voylenko
9033e09ac1 feat: add web dashboard 2026-07-13 19:53:15 +03:00
Anton Voylenko
2e6dc71bf1 chore(ci): add dependabot config 2026-07-01 20:13:06 +03:00
Anton Voylenko
2c233ec3fb chore(ci): bump jest and add a few tests 2026-06-22 21:35:37 +03:00
Dirham Triyadi
c61d3882a2
Persist sessions in named volume instead of repo bind mount (#133)
Replace the relative ./sessions bind mount with a Docker-managed named
volume so WhatsApp sessions survive container recreation and redeploys
(e.g. on Dokploy), instead of being reset on every fresh deploy.
2026-06-20 22:01:51 +03:00
Anton Voylenko
4e2f59173b feat: log exception on 500 error 2026-05-30 19:09:16 +03:00
vbas-644
132bcf6ee3
feat: support outbound proxy for Chromium sessions (#131)
* feat: support outbound proxy for Chromium sessions

Routes WhatsApp Web traffic through an HTTP/HTTPS/SOCKS5 proxy when
PROXY_URL is set. Optional PROXY_API_KEY enables auth by passing the
key as the basic-auth username (the format API-key proxies expect).
No behavior change when unset.

Useful for deployments behind egress filters or where outbound
WhatsApp traffic must originate from a specific IP.

* docs: 📝 rewrite proxy auth part

* fix: 🐛 move api key value to passwd

* fix: 💄 change var naming

* fix: 🎨 change var ref in docs and data passing
2026-05-27 12:56:34 +03:00
Anton Voylenko
7a0cd227fb chore: add daily edge workflow 2026-05-14 00:25:07 +03:00
Anton Voylenko
0940826e15 fix: fetchMessages after wwebjs update 2026-04-25 00:18:02 +03:00
Anton Voylenko
bdb52e9ac1 chore: bump dependencies 2026-04-24 23:59:30 +03:00
Dirham Triyadi
1645f219f2
fix: port mapping syntax in docker-compose.yml (#126) 2026-04-23 13:22:03 +03:00
Nir
31e9412301
Fix message/reply endpoint with a @lid contactId (#121)
Avoid adding a contactId '@c.us' postfix if a '@lid' postfix exists, to support @lid ids as well

Co-authored-by: nir <nir@severin>
2026-04-02 22:30:48 +03:00
Nir
f1ff7812c3
Replace window.Store in utils.getChats (#119)
This fixes #116 by adhering to the newer whatsapp-web.js interface and using 'window.require' instead of 'window.store'

Co-authored-by: nir <nir@severin>
2026-03-11 14:33:14 +02:00
Nir
283b1dfb8c
Fix API change window.store removal (#117)
window.Store was removed from whatsapp web. This piece of code was using it still.
I was now getting hit with it once #104 was merged, although I'm not sure why I wasn't earlier.

This might be a bigger issue that needs addressing here, or something that depends on whatsapp web js version

Co-authored-by: nir <nir@severin>
2026-03-09 09:38:03 +02:00
Nir
073eff93a2
fetchMessages: Add searchOption.messageId and utilize it in _getMessageById (#105)
This fixes issue #104

Co-authored-by: nir <nir@severin>
2026-03-08 19:40:16 +02:00
Nir
6894b8ecd6
Add getPollVotes for a message (#115)
* Add getPollVotes for a message

* Add swagger.json

* CR fixes

---------

Co-authored-by: nir <nir@severin>
2026-03-08 18:33:19 +02:00
Kauã Q.
c6c746afbc
feat(docs): implement comprehensive Chat and ChatId schemas for Swagger (#103)
* feat(docs): add ChatId schema definition to swagger.json

* feat(docs): integrate ChatId and define base of Chat schema.

* feat(docs): add response schema for chat listing
2026-02-28 21:44:38 +02:00
M Firdaus Riawan
85dbb14b28
feat: allow host port to be configured via environment variable in Docker (#65)
* feat: add reverse proxy support with configurable base path and trust proxy settings

* fix: ensure environment variables are loaded correctly in Docker

- Move dotenv config to the top of server.js
- Update docker-compose.yml to properly handle .env file
- Remove duplicate environment variables section

This ensures BASE_PATH and TRUST_PROXY work as expected in both Docker and local environments.

* refactor: remove hardcoded environment variables from docker-compose.yml

* feat: Allow host port to be configured via .env
2026-02-24 23:01:46 +02:00
Alif Naufal Ilyas
3fb7538149
Fix: change sessionId to get the last path instead of path number 3 or 2 (#111) 2026-02-24 22:59:43 +02:00
Anton Voylenko
73db3b322b chore: bump dependencies 2026-01-30 18:46:01 +02:00
Anton Voylenko
44c14bb324 feat: allow cors 2026-01-11 15:02:26 +02:00
Anton Voylenko
65add03cbc fix(ci): add PUPPETEER_EXECUTABLE_PATH env 2026-01-11 15:02:14 +02:00
Anton Voylenko
c05ce97e80 chore(ci): bump dependencies 2026-01-05 10:23:54 +02:00
Anton Voylenko
a801aaf6c7
ci: finally fix docker build (#84) 2025-12-10 10:23:06 +02:00
Anton Voylenko
2bf8ae8993 ci: fix npm install 2025-12-09 22:13:11 +02:00
Anton Voylenko
793b3e63dd ci: pass docker arg 2025-12-09 22:03:50 +02:00
Anton Voylenko
eb1a1981ab ci: disable cache for edge tag 2025-12-09 21:44:28 +02:00
Anton Voylenko
14aa1fed83 ci: another way of changing library 2025-12-09 21:28:42 +02:00
Anton Voylenko
210ab65c94 ci: one more try to override library 2025-12-09 20:39:57 +02:00
Anton Voylenko
c342add731 ci: override lock file on edge tag 2025-12-09 20:19:24 +02:00
Anton Voylenko
ee6e6f9391 ci: change steps order 2025-12-09 20:03:02 +02:00
Anton Voylenko
3f619b2407 ci: ability to install latest library 2025-12-09 19:46:21 +02:00
Anton Voylenko
78d027d2ab docs: update readme with github install 2025-12-09 19:45:58 +02:00
Anton Voylenko
d10434504b chore: update deps 2025-11-07 00:23:41 +02:00
Anton Voylenko
87b7472f65 docs: fix docker command 2025-11-07 00:23:16 +02:00
Anton Voylenko
94a4b89e14
Add GitHub sponsor 2025-10-04 16:24:45 +03:00
Anton Voylenko
4c2745fcc3 refactor: remove inline conf comments 2025-10-02 11:43:40 +03:00
Anton Voylenko
f409381050 chore: bump whatsapp-web.js 2025-09-10 18:21:20 +03:00
M Firdaus Riawan
b4d66648bd
fix: Environment variable override in Docker Compose (#54)
* feat: add reverse proxy support with configurable base path and trust proxy settings

* fix: ensure environment variables are loaded correctly in Docker

- Move dotenv config to the top of server.js
- Update docker-compose.yml to properly handle .env file
- Remove duplicate environment variables section

This ensures BASE_PATH and TRUST_PROXY work as expected in both Docker and local environments.

* refactor: remove hardcoded environment variables from docker-compose.yml
2025-09-10 18:20:38 +03:00
Kauã Q.
cf8cd615e1
feat: The GetSessionsResponse now includes example string values for the result property (#44) 2025-09-10 18:20:22 +03:00
Anton Voylenko
c12f1e1993 Merge branch 'main' of https://github.com/avoylenko/wwebjs-api 2025-09-07 12:24:50 +03:00
Anton Voylenko
b090a315ff feat: log page messages and errors 2025-09-07 12:24:01 +03:00
Anton Voylenko
e1bc24861c chore: bump whatsapp-web.js 2025-09-07 12:23:37 +03:00