8 Commits

Author SHA1 Message Date
iamatulsingh d20632fe1a fix: person name update using other options before saving same as number 2026-06-01 17:20:15 +02:00
Atul Singh 193e0d3c77 feat: ratelimit, ghcr package support, media path sensitization, LID to CN migration (#6)
* feat: ratelimit, ghcr package and proper project refactor from askarzh

* fix(bridge): validate media path

* update: dependencies

* fix: added LID to contact number migration
2026-05-13 12:54:31 +02:00
M. L. Giannotta 4f72261998 chore(bridge): clean up docker-compose defaults
* Drop the obsolete top-level `version: "3.9"` key (Compose v2 ignores it
  with a warning).
* Align `POSTGRES_DB` with the database name the bridge actually opens.
  main.go opens "whatsapp" unconditionally, so the previous "testdb"
  default makes the stack fail on first `docker compose up` with
  `pq: database "whatsapp" does not exist`.
* Replace the public placeholder `API_KEY` / `JWT_SECRET` values with
  CHANGE_ME markers and an inline command for generating safe ones, so a
  user who copy-pastes the file can't accidentally bring up a bridge with
  publicly-known credentials.
* Drop the hard-coded `WEBHOOK_URL` pointing at a private 192.168.x
  n8n instance and replace with a commented optional example. The env
  var is read with `os.Getenv`, so leaving it unset is supported.
2026-05-10 16:03:09 +08:00
Mike 4a1bdda2ae Fix PostgreSQL parameter type error in ListChats
- Added ::int type casting to LIMIT and OFFSET parameters for PostgreSQL
- Fixed parameter numbering: changed placeholder(len(args)+2) to placeholder(len(args)+1) for OFFSET clause
- Resolves error: pq: could not determine data type of parameter  (42P18)

This fix ensures proper parameter binding when using PostgreSQL with the
whatsapp-bridge ListChats endpoint, which is used by the MCP server
to retrieve WhatsApp chat lists.
2026-04-09 15:05:04 +03:00
iamatulsingh b136334953 feat: webhook option added for incoming messages 2026-03-24 21:23:41 +01:00
iamatulsingh cc6f466c72 feat: add JWT authentication middleware and login endpoint 2026-03-08 21:01:04 +01:00
iamatulsingh 54ce4d417f fix: minor cleanup for makefile and dockerfile 2026-02-22 15:06:08 +01:00
iamatulsingh dd5e347436 feat: whatsapp-mcp-go 2026-02-21 21:12:14 +01:00