Commit graph

115 commits

Author SHA1 Message Date
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
M Firdaus Riawan
364c8fe647
fix: ensure environment variables are loaded correctly in Docker (#49)
* 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.
2025-09-06 14:30:01 +03:00
Anton Voylenko
f8e2ee248b fix: remove qr code expiration logic 2025-09-06 14:27:31 +03:00
Anton Voylenko
fb3d957ba6 chore: bump dependencies 2025-09-06 12:19:44 +03:00
Anton Voylenko
1200abd9c8 refactor: remove wwebjs patch 2025-09-06 12:19:33 +03:00
Anton Voylenko
dd886a1fea feat: ability to filter chats and messages 2025-09-02 23:19:46 +03:00
M Firdaus Riawan
62860a658c
feat: add reverse proxy support with configurable base path and trust proxy settings (#47) 2025-09-02 15:32:55 +03:00
Anton Voylenko
70154165fa chore: bump whatsapp-web.js 2025-09-02 10:48:04 +03:00
Anton Voylenko
a618c67038 fix: update library and inject FindOrCreateChat 2025-08-30 22:52:19 +03:00
Anton Voylenko
18d4a5d43b chore: bump whatsapp-web.js 2025-08-28 18:29:32 +03:00
Anton Voylenko
532b236442 fix: requestPairingCode method 2025-08-25 11:20:57 +03:00