GOWA - WhatsApp REST API with support for UI, Multi Account, Webhooks, and MCP, and Chatwoot. Built with Golang for efficient memory use.
Go botgogolanggolang-whatsappgolang-whatsapp-apirestrest-apiwhatsappwhatsapp-apiwhatsapp-api-gowhatsapp-multi-devicewhatsapp-web-multi-device
docs(readme): update README with new gallery images and formatting improvements
Aldino Kemal773b32becb05
diff --git a/gallery/contact-list.png b/gallery/contact-list.pngnew file mode 100644index 00000000..950db1dcBinary files /dev/null and b/gallery/contact-list.png differdiff --git a/gallery/group-create.png b/gallery/group-create.pngnew file mode 100644index 00000000..7eacf6daBinary files /dev/null and b/gallery/group-create.png differdiff --git a/gallery/group-join-link.png b/gallery/group-join-link.pngnew file mode 100644index 00000000..a2df26c0Binary files /dev/null and b/gallery/group-join-link.png differdiff --git a/gallery/group-list.png b/gallery/group-list.pngnew file mode 100644index 00000000..475502eeBinary files /dev/null and b/gallery/group-list.png differdiff --git a/gallery/group-manage-participant.png b/gallery/group-manage-participant.pngnew file mode 100644index 00000000..c29550d4Binary files /dev/null and b/gallery/group-manage-participant.png differdiff --git a/gallery/homepage.png b/gallery/homepage.pngnew file mode 100644index 00000000..959f48edBinary files /dev/null and b/gallery/homepage.png differdiff --git a/gallery/login-with-code.png b/gallery/login-with-code.pngnew file mode 100644index 00000000..cf7e3a8eBinary files /dev/null and b/gallery/login-with-code.png differdiff --git a/gallery/login.png b/gallery/login.pngnew file mode 100644index 00000000..de0fee1fBinary files /dev/null and b/gallery/login.png differdiff --git a/gallery/newsletter-list.png b/gallery/newsletter-list.pngnew file mode 100644index 00000000..61e4681cBinary files /dev/null and b/gallery/newsletter-list.png differdiff --git a/gallery/send-audio.png b/gallery/send-audio.pngnew file mode 100644index 00000000..e663a038Binary files /dev/null and b/gallery/send-audio.png differdiff --git a/gallery/send-contact.png b/gallery/send-contact.pngnew file mode 100644index 00000000..bcdf3aedBinary files /dev/null and b/gallery/send-contact.png differdiff --git a/gallery/send-file.png b/gallery/send-file.pngnew file mode 100644index 00000000..7c65048bBinary files /dev/null and b/gallery/send-file.png differdiff --git a/gallery/send-image.png b/gallery/send-image.pngnew file mode 100644index 00000000..f11d7881Binary files /dev/null and b/gallery/send-image.png differdiff --git a/gallery/send-link.png b/gallery/send-link.pngnew file mode 100644index 00000000..aea6e82aBinary files /dev/null and b/gallery/send-link.png differdiff --git a/gallery/send-location.png b/gallery/send-location.pngnew file mode 100644index 00000000..57638c23Binary files /dev/null and b/gallery/send-location.png differdiff --git a/gallery/send-message.png b/gallery/send-message.pngnew file mode 100644index 00000000..f2904340Binary files /dev/null and b/gallery/send-message.png differdiff --git a/gallery/send-poll.png b/gallery/send-poll.pngnew file mode 100644index 00000000..4cfbaf86Binary files /dev/null and b/gallery/send-poll.png differdiff --git a/gallery/send-presence.png b/gallery/send-presence.pngnew file mode 100644index 00000000..7c575a2cBinary files /dev/null and b/gallery/send-presence.png differdiff --git a/gallery/send-video.png b/gallery/send-video.pngnew file mode 100644index 00000000..c873824bBinary files /dev/null and b/gallery/send-video.png differdiff --git a/readme.md b/readme.mdindex 27eb8e60..ed14e39d 100644--- a/readme.md+++ b/readme.md@@ -3,7 +3,7 @@<div align="center"><!-- markdownlint-disable-next-line MD033 --><img src="src/views/assets/gowa.svg" alt="GoWA Logo" width="200" height="200">-+## Golang WhatsApp - Built with Go for efficient memory use</div>@@ -36,39 +36,39 @@ Download:## Breaking Changes- `v6`- - For REST mode, you need to run `<binary> rest` instead of `<binary>`- - for example: `./whatsapp rest` instead of ~~./whatsapp~~- - For MCP mode, you need to run `<binary> mcp`- - for example: `./whatsapp mcp`+ - For REST mode, you need to run `<binary> rest` instead of `<binary>`+ - for example: `./whatsapp rest` instead of ~~./whatsapp~~+ - For MCP mode, you need to run `<binary> mcp`+ - for example: `./whatsapp mcp`## Feature- Send WhatsApp message via http API, [docs/openapi.yml](./docs/openapi.yaml) for more details- **MCP (Model Context Protocol) Server Support** - Integrate with AI agents and tools using standardized protocol- Mention someone- - `@phoneNumber`- - example: `Hello @628974812XXXX, @628974812XXXX`+ - `@phoneNumber`+ - example: `Hello @628974812XXXX, @628974812XXXX`- Post Whatsapp Status- Compress image before send- Compress video before send- Change OS name become your app (it's the device name when connect via mobile)- - `--os=Chrome` or `--os=MyApplication`+ - `--os=Chrome` or `--os=MyApplication`- Basic Auth (able to add multi credentials)- - `--basic-auth=kemal:secret,toni:password,userName:secretPassword`, or you can simplify- - `-b=kemal:secret,toni:password,userName:secretPassword`+ - `--basic-auth=kemal:secret,toni:password,userName:secretPassword`, or you can simplify+ - `-b=kemal:secret,toni:password,userName:secretPassword`- Customizable port and debug mode- - `--port 8000`- - `--debug true`+ - `--port 8000`+ - `--debug true`- Auto reply message- - `--autoreply="Don't reply this message"`+ - `--autoreply="Don't reply this message"`- Webhook for received message- - `--webhook="http://yourwebhook.site/handler"`, or you can simplify- - `-w="http://yourwebhook.site/handler"`+ - `--webhook="http://yourwebhook.site/handler"`, or you can simplify+ - `-w="http://yourwebhook.site/handler"`- Webhook SecretOur webhook will be sent to you with an HMAC header and a sha256 default key `secret`.You may modify this by using the option below:- - `--webhook-secret="secret"`+ - `--webhook-secret="secret"`## Configuration@@ -81,7 +81,8 @@ can be set in three ways (in order of priority):### Environment Variables-You can configure the application using environment variables. Configuration can be set in three ways (in order of priority):+You can configure the application using environment variables. Configuration can be set in three ways (in order of+priority):1. Command-line flags (highest priority)2. Environment variables@@ -95,19 +96,19 @@ To use environment variables:#### Available Environment Variables-| Variable | Description | Default | Example |-|----------|-------------|---------|---------|-| `APP_PORT` | Application port | `3000` | `APP_PORT=8080` |-| `APP_DEBUG` | Enable debug logging | `false` | `APP_DEBUG=true` |-| `APP_OS` | OS name (device name in WhatsApp) | `Chrome` | `APP_OS=MyApp` |-| `APP_BASIC_AUTH` | Basic authentication credentials | - | `APP_BASIC_AUTH=user1:pass1,user2:pass2` |-| `APP_CHAT_FLUSH_INTERVAL` | Chat flush interval in days | `7` | `APP_CHAT_FLUSH_INTERVAL=30` |-| `DB_URI` | Database connection URI | `file:storages/whatsapp.db?_foreign_keys=on` | `DB_URI=postgres://user:pass@host/db` |-| `WHATSAPP_AUTO_REPLY` | Auto-reply message | - | `WHATSAPP_AUTO_REPLY="Auto reply message"` |-| `WHATSAPP_WEBHOOK` | Webhook URL(s) for events (comma-separated) | - | `WHATSAPP_WEBHOOK=https://webhook.site/xxx` |-| `WHATSAPP_WEBHOOK_SECRET` | Webhook secret for validation | `secret` | `WHATSAPP_WEBHOOK_SECRET=super-secret-key` |-| `WHATSAPP_ACCOUNT_VALIDATION` | Enable account validation | `true` | `WHATSAPP_ACCOUNT_VALIDATION=false` |-| `WHATSAPP_CHAT_STORAGE` | Enable chat storage | `true` | `WHATSAPP_CHAT_STORAGE=false` |+| Variable | Description | Default | Example |+|-------------------------------|---------------------------------------------|----------------------------------------------|---------------------------------------------|+| `APP_PORT` | Application port | `3000` | `APP_PORT=8080` |+| `APP_DEBUG` | Enable debug logging | `false` | `APP_DEBUG=true` |+| `APP_OS` | OS name (device name in WhatsApp) | `Chrome` | `APP_OS=MyApp` |+| `APP_BASIC_AUTH` | Basic authentication credentials | - | `APP_BASIC_AUTH=user1:pass1,user2:pass2` |+| `APP_CHAT_FLUSH_INTERVAL` | Chat flush interval in days | `7` | `APP_CHAT_FLUSH_INTERVAL=30` |+| `DB_URI` | Database connection URI | `file:storages/whatsapp.db?_foreign_keys=on` | `DB_URI=postgres://user:pass@host/db` |+| `WHATSAPP_AUTO_REPLY` | Auto-reply message | - | `WHATSAPP_AUTO_REPLY="Auto reply message"` |+| `WHATSAPP_WEBHOOK` | Webhook URL(s) for events (comma-separated) | - | `WHATSAPP_WEBHOOK=https://webhook.site/xxx` |+| `WHATSAPP_WEBHOOK_SECRET` | Webhook secret for validation | `secret` | `WHATSAPP_WEBHOOK_SECRET=super-secret-key` |+| `WHATSAPP_ACCOUNT_VALIDATION` | Enable account validation | `true` | `WHATSAPP_ACCOUNT_VALIDATION=false` |+| `WHATSAPP_CHAT_STORAGE` | Enable chat storage | `true` | `WHATSAPP_CHAT_STORAGE=false` |Note: Command-line flags will override any values set in environment variables or `.env` file.@@ -129,14 +130,14 @@ Note: Command-line flags will override any values set in environment variables o### Dependencies (without docker)- Mac OS:- - `brew install ffmpeg`- - `export CGO_CFLAGS_ALLOW="-Xpreprocessor"`+ - `brew install ffmpeg`+ - `export CGO_CFLAGS_ALLOW="-Xpreprocessor"`- Linux:- - `sudo apt update`- - `sudo apt install ffmpeg`+ - `sudo apt update`+ - `sudo apt install ffmpeg`- Windows (not recomended, prefer using [WSL](https://docs.microsoft.com/en-us/windows/wsl/install)):- - install ffmpeg, [download here](https://www.ffmpeg.org/download.html#build-windows)- - add to ffmpeg to [environment variable](https://www.google.com/search?q=windows+add+to+environment+path)+ - install ffmpeg, [download here](https://www.ffmpeg.org/download.html#build-windows)+ - add to ffmpeg to [environment variable](https://www.google.com/search?q=windows+add+to+environment+path)## How to use@@ -172,7 +173,8 @@ Note: Command-line flags will override any values set in environment variables o### MCP Server (Model Context Protocol)-This application can also run as an MCP server, allowing AI agents and tools to interact with WhatsApp through a standardized protocol.+This application can also run as an MCP server, allowing AI agents and tools to interact with WhatsApp through a+standardized protocol.1. Clone this repo `git clone https://github.com/aldinokemal/go-whatsapp-web-multidevice`2. Open the folder that was cloned via cmd/terminal.@@ -290,49 +292,49 @@ You can fork or edit this source code !- Use [SwaggerEditor](https://editor.swagger.io) to visualize the API.- Generate HTTP clients using [openapi-generator](https://openapi-generator.tech/#try).-| Feature | Menu | Method | URL |-|---------|----------------------------------------|--------|---------------------------------------|-| ✅ | Login with Scan QR | GET | /app/login |-| ✅ | Login With Pair Code | GET | /app/login-with-code |-| ✅ | Logout | GET | /app/logout |-| ✅ | Reconnect | GET | /app/reconnect |-| ✅ | Devices | GET | /app/devices |-| ✅ | User Info | GET | /user/info |-| ✅ | User Avatar | GET | /user/avatar |-| ✅ | User Change Avatar | POST | /user/avatar |-| ✅ | User Change PushName | POST | /user/pushname |-| ✅ | User My Groups | GET | /user/my/groups |-| ✅ | User My Newsletter | GET | /user/my/newsletters |-| ✅ | User My Privacy Setting | GET | /user/my/privacy |-| ✅ | User My Contacts | GET | /user/my/contacts |-| ✅ | Send Message | POST | /send/message |-| ✅ | Send Image | POST | /send/image |-| ✅ | Send Audio | POST | /send/audio |-| ✅ | Send File | POST | /send/file |-| ✅ | Send Video | POST | /send/video |-| ✅ | Send Contact | POST | /send/contact |-| ✅ | Send Link | POST | /send/link |-| ✅ | Send Location | POST | /send/location |-| ✅ | Send Poll / Vote | POST | /send/poll |-| ✅ | Send Presence | POST | /send/presence |-| ✅ | Revoke Message | POST | /message/:message_id/revoke |-| ✅ | React Message | POST | /message/:message_id/reaction |-| ✅ | Delete Message | POST | /message/:message_id/delete |-| ✅ | Edit Message | POST | /message/:message_id/update |-| ✅ | Read Message (DM) | POST | /message/:message_id/read |-| ✅ | Star Message | POST | /message/:message_id/star |-| ✅ | Unstar Message | POST | /message/:message_id/unstar |-| ✅ | Join Group With Link | POST | /group/join-with-link |-| ✅ | Leave Group | POST | /group/leave |-| ✅ | Create Group | POST | /group |-| ✅ | Add Participants in Group | POST | /group/participants |-| ✅ | Remove Participant in Group | POST | /group/participants/remove |-| ✅ | Promote Participant in Group | POST | /group/participants/promote |-| ✅ | Demote Participant in Group | POST | /group/participants/demote |-| ✅ | List Requested Participants in Group | GET | /group/participant-requests |-| ✅ | Approve Requested Participant in Group | POST | /group/participant-requests/approve |-| ✅ | Reject Requested Participant in Group | POST | /group/participant-requests/reject |-| ✅ | Unfollow Newsletter | POST | /newsletter/unfollow |+| Feature | Menu | Method | URL |+|---------|----------------------------------------|--------|-------------------------------------|+| ✅ | Login with Scan QR | GET | /app/login |+| ✅ | Login With Pair Code | GET | /app/login-with-code |+| ✅ | Logout | GET | /app/logout |+| ✅ | Reconnect | GET | /app/reconnect |+| ✅ | Devices | GET | /app/devices |+| ✅ | User Info | GET | /user/info |+| ✅ | User Avatar | GET | /user/avatar |+| ✅ | User Change Avatar | POST | /user/avatar |+| ✅ | User Change PushName | POST | /user/pushname |+| ✅ | User My Groups | GET | /user/my/groups |+| ✅ | User My Newsletter | GET | /user/my/newsletters |+| ✅ | User My Privacy Setting | GET | /user/my/privacy |+| ✅ | User My Contacts | GET | /user/my/contacts |+| ✅ | Send Message | POST | /send/message |+| ✅ | Send Image | POST | /send/image |+| ✅ | Send Audio | POST | /send/audio |+| ✅ | Send File | POST | /send/file |+| ✅ | Send Video | POST | /send/video |+| ✅ | Send Contact | POST | /send/contact |+| ✅ | Send Link | POST | /send/link |+| ✅ | Send Location | POST | /send/location |+| ✅ | Send Poll / Vote | POST | /send/poll |+| ✅ | Send Presence | POST | /send/presence |+| ✅ | Revoke Message | POST | /message/:message_id/revoke |+| ✅ | React Message | POST | /message/:message_id/reaction |+| ✅ | Delete Message | POST | /message/:message_id/delete |+| ✅ | Edit Message | POST | /message/:message_id/update |+| ✅ | Read Message (DM) | POST | /message/:message_id/read |+| ✅ | Star Message | POST | /message/:message_id/star |+| ✅ | Unstar Message | POST | /message/:message_id/unstar |+| ✅ | Join Group With Link | POST | /group/join-with-link |+| ✅ | Leave Group | POST | /group/leave |+| ✅ | Create Group | POST | /group |+| ✅ | Add Participants in Group | POST | /group/participants |+| ✅ | Remove Participant in Group | POST | /group/participants/remove |+| ✅ | Promote Participant in Group | POST | /group/participants/promote |+| ✅ | Demote Participant in Group | POST | /group/participants/demote |+| ✅ | List Requested Participants in Group | GET | /group/participant-requests |+| ✅ | Approve Requested Participant in Group | POST | /group/participant-requests/approve |+| ✅ | Reject Requested Participant in Group | POST | /group/participant-requests/reject |+| ✅ | Unfollow Newsletter | POST | /newsletter/unfollow |```txt✅ = Available@@ -344,42 +346,35 @@ You can fork or edit this source code !### MCP UI- Setup MCP (tested in cursor)-+ - Test MCP-+ - Successfully setup MCP-+ ### HTTP REST API UI-| Description | Image |-|----------------------|------------------------------------------------------------------------------------------|-| Homepage |  |-| Login |  |-| Login With Code |  |-| Send Message |  |-| Send Image |  |-| Send File |  |-| Send Video |  |-| Send Contact |  |-| Send Location |  |-| Send Audio |  |-| Send Poll |  |-| Send Presence |  |-| Revoke Message |  |-| Delete Message |  |-| Reaction Message |  |-| Edit Message |  |-| User Info |  |-| User Avatar |  |-| My Privacy |  |-| My Group |  |-| Create Group |  |-| Join Group with LInk |  |-| Auto Reply |  |-| Basic Auth Prompt |  |-| Manage Participant |  |-| My Newsletter |  |+| Description | Image |+|----------------------|---------------------------------------------------------------|+| Homepage |  |+| Login |  |+| Login With Code |  |+| Send Message |  |+| Send Image |  |+| Send File |  |+| Send Video |  |+| Send Contact |  |+| Send Location |  |+| Send Audio |  |+| Send Poll |  |+| Send Presence |  |+| Send Link |  |+| My Group |  |+| Create Group |  |+| Join Group with LInk |  |+| Manage Participant |  |+| My Newsletter |  |+| My Contacts |  |### Mac OS NOTE@@ -390,4 +385,5 @@ You can fork or edit this source code !- This project is unofficial and not affiliated with WhatsApp.- Please use official WhatsApp API to avoid any issues.-- We only able to run MCP or REST API, this is limitation from whatsmeow library. independent MCP will be available in the future.+- We only able to run MCP or REST API, this is limitation from whatsmeow library. independent MCP will be available in+ the future.