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
chore: bump version to v6.1.2 and update dependencies
Aldino Kemal990c3388b0d1
diff --git a/.cursor/rules/project-structure.mdc b/.cursor/rules/project-structure.mdcindex 5af0483e..59276969 100644--- a/.cursor/rules/project-structure.mdc+++ b/.cursor/rules/project-structure.mdc@@ -1,5 +1,5 @@----description:+description: complete guide about project structureglobs:alwaysApply: false---@@ -21,7 +21,9 @@ The main source code is organized in the `src` directory with the following stru#### Command Line Interface-- [src/cmd/root.go](mdc:src/cmd/root.go) - Main entry point using Cobra for CLI commands, handles configuration loading and server initialization+- [src/cmd/root.go](mdc:src/cmd/root.go) - Root command using Cobra for CLI commands, handles configuration loading+- [src/cmd/rest.go](mdc:src/cmd/rest.go) - REST server command implementation+- [src/cmd/mcp.go](mdc:src/cmd/mcp.go) - Model Context Protocol server command implementation#### Configuration@@ -32,6 +34,7 @@ The main source code is organized in the `src` directory with the following struThe application is organized using domain-driven design principles:- [src/domains/app/](mdc:src/domains/app) - Core application domain models+- [src/domains/device/](mdc:src/domains/device) - Device-related domain models- [src/domains/group/](mdc:src/domains/group) - Group-related domain models- [src/domains/message/](mdc:src/domains/message) - Message-related domain models- [src/domains/newsletter/](mdc:src/domains/newsletter) - Newsletter-related domain models@@ -66,14 +69,6 @@ The application is organized using domain-driven design principles:- [src/statics/qrcode/](mdc:src/statics/qrcode) - QR code images for WhatsApp authentication- [src/statics/senditems/](mdc:src/statics/senditems) - Items to be sent via WhatsApp-#### Storage--- [src/storages/](mdc:src/storages) - Storage-related functionality and database connection--#### Temporary Files--- [src/tmp/](mdc:src/tmp) - Temporary files and directories-#### Validation- [src/validations/](mdc:src/validations) - Request validation logic@@ -88,17 +83,13 @@ The application is organized using domain-driven design principles:### Documentation- [docs/](mdc:docs) - Project documentation+ - [docs/openapi.yaml](mdc:docs/openapi.yaml) - OpenAPI specification for the REST API- [docs/sdk/](mdc:docs/sdk) - SDK documentation### Docker- [docker/](mdc:docker) - Docker-related files and configurations--### GitHub Configuration--- [.github/](mdc:.github) - GitHub-specific configuration- - [.github/ISSUE_TEMPLATE/](mdc:.github/ISSUE_TEMPLATE) - Templates for GitHub issues- - [.github/workflows/](mdc:.github/workflows) - GitHub Actions workflows+ - [docker/golang.Dockerfile](mdc:docker/golang.Dockerfile) - Dockerfile for building the Go application## Key Application Features@@ -109,14 +100,24 @@ The application is organized using domain-driven design principles:- WebSocket real-time updates- Webhooks for message events- Auto-reply functionality+- Model Context Protocol (MCP) server for AI agent communication## Application Flow+### REST Server Mode+1. The application starts from [src/cmd/root.go](mdc:src/cmd/root.go)+2. REST server command is executed via [src/cmd/rest.go](mdc:src/cmd/rest.go)+3. Configuration is loaded from environment variables or command line flags+4. The REST server is initialized using Fiber framework+5. WhatsApp client is initialized and services are created+6. REST routes are registered for different domains+7. WebSocket hub is started for real-time communication+8. Background tasks are started (auto-reconnect, chat storage flushing)+9. The server listens for requests on the configured port++### MCP Server Mode1. The application starts from [src/cmd/root.go](mdc:src/cmd/root.go)-2. Configuration is loaded from environment variables or command line flags-3. The REST server is initialized using Fiber framework-4. WhatsApp client is initialized and services are created-5. REST routes are registered for different domains-6. WebSocket hub is started for real-time communication-7. Background tasks are started (auto-reconnect, chat storage flushing)-8. The server listens for requests on the configured port+2. MCP server command is executed via [src/cmd/mcp.go](mdc:src/cmd/mcp.go)+3. Model Context Protocol server is initialized for AI agent communication+4. WhatsApp client services are made available through MCP protocol+5. The MCP server listens for AI agent requestsdiff --git a/src/config/settings.go b/src/config/settings.goindex 3da9376b..67452b41 100644--- a/src/config/settings.go+++ b/src/config/settings.go@@ -5,7 +5,7 @@ import ()var (- AppVersion = "v6.1.1"+ AppVersion = "v6.1.2"AppPort = "3000"AppDebug = falseAppOs = "AldinoKemal"diff --git a/src/go.mod b/src/go.modindex 8f2a5544..81d8340f 100644--- a/src/go.mod+++ b/src/go.mod@@ -19,16 +19,16 @@ require (github.com/spf13/cobra v1.9.1github.com/spf13/viper v1.20.1github.com/stretchr/testify v1.10.0- github.com/valyala/fasthttp v1.62.0+ github.com/valyala/fasthttp v1.63.0go.mau.fi/libsignal v0.2.0- go.mau.fi/whatsmeow v0.0.0-20250617170509-947866bb9f75+ go.mau.fi/whatsmeow v0.0.0-20250630101711-a0eb38c885c5golang.org/x/image v0.28.0google.golang.org/protobuf v1.36.6)require (filippo.io/edwards25519 v1.1.0 // indirect- github.com/andybalholm/brotli v1.1.1 // indirect+ github.com/andybalholm/brotli v1.2.0 // indirectgithub.com/andybalholm/cascadia v1.3.3 // indirectgithub.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2 // indirectgithub.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirectdiff --git a/src/go.sum b/src/go.sumindex ead6e14a..31df6c8f 100644--- a/src/go.sum+++ b/src/go.sum@@ -6,6 +6,8 @@ github.com/PuerkitoBio/goquery v1.10.3 h1:pFYcNSqHxBD06Fpj/KsbStFRsgRATgnf3LeXiUgithub.com/PuerkitoBio/goquery v1.10.3/go.mod h1:tMUX0zDMHXYlAQk6p35XxQMqMweEKB7iK7iLNd4RH4Y=github.com/andybalholm/brotli v1.1.1 h1:PR2pgnyFznKEugtsUo0xLdDop5SKXd5Qf5ysW+7XdTA=github.com/andybalholm/brotli v1.1.1/go.mod h1:05ib4cKhjx3OQYUY22hTVd34Bc8upXjOLL2rKwwZBoA=+github.com/andybalholm/brotli v1.2.0 h1:ukwgCxwYrmACq68yiUqwIWnGY0cTPox/M94sVwToPjQ=+github.com/andybalholm/brotli v1.2.0/go.mod h1:rzTDkvFWvIrjDXZHkuS16NPggd91W3kUSvPlQ1pLaKY=github.com/andybalholm/cascadia v1.3.3 h1:AG2YHrzJIm4BZ19iwJ/DAua6Btl3IwJX+VI4kktS1LM=github.com/andybalholm/cascadia v1.3.3/go.mod h1:xNd9bqTn98Ln4DwST8/nG+H0yuB8Hmgu1YHNnWw0GeA=github.com/asaskevich/govalidator v0.0.0-20200108200545-475eaeb16496/go.mod h1:oGkLhpf+kjZl6xBf758TQhh5XrAeiJv/7FRz/2spLIg=@@ -123,6 +125,8 @@ github.com/valyala/bytebufferpool v1.0.0 h1:GqA5TC/0021Y/b9FG4Oi9Mr3q7XYx6Kllzawgithub.com/valyala/bytebufferpool v1.0.0/go.mod h1:6bBcMArwyJ5K/AmCkWv1jt77kVWyCJ6HpOuEn7z0Csc=github.com/valyala/fasthttp v1.62.0 h1:8dKRBX/y2rCzyc6903Zu1+3qN0H/d2MsxPPmVNamiH0=github.com/valyala/fasthttp v1.62.0/go.mod h1:FCINgr4GKdKqV8Q0xv8b+UxPV+H/O5nNFo3D+r54Htg=+github.com/valyala/fasthttp v1.63.0 h1:DisIL8OjB7ul2d7cBaMRcKTQDYnrGy56R4FCiuDP0Ns=+github.com/valyala/fasthttp v1.63.0/go.mod h1:REc4IeW+cAEyLrRPa5A81MIjvz0QE1laoTX2EaPHKJM=github.com/xyproto/randomstring v1.0.5 h1:YtlWPoRdgMu3NZtP45drfy1GKoojuR7hmRcnhZqKjWU=github.com/xyproto/randomstring v1.0.5/go.mod h1:rgmS5DeNXLivK7YprL0pY+lTuhNQW3iGxZ18UQApw/E=github.com/yosida95/uritemplate/v3 v3.0.2 h1:Ed3Oyj9yrmi9087+NczuL5BwkIc4wvTb5zIM+UJPGz4=@@ -138,6 +142,8 @@ go.mau.fi/whatsmeow v0.0.0-20250612124742-cc05d16b464b h1:jiEaJcX+R5bzfdpNIyAPzpgo.mau.fi/whatsmeow v0.0.0-20250612124742-cc05d16b464b/go.mod h1:Qy3L3BNBcnxfrAQ09lmFMa0ItZfg8zl9DzxKrptzfU4=go.mau.fi/whatsmeow v0.0.0-20250617170509-947866bb9f75 h1:5SvY8TY8Yo0wXpn+enqE1sCQBKRSHxLcMrP+AG4Pe+k=go.mau.fi/whatsmeow v0.0.0-20250617170509-947866bb9f75/go.mod h1:bEyyFvXlwr/18B2pOkdX1vWAx1+y1NJX+sCXVyw01UA=+go.mau.fi/whatsmeow v0.0.0-20250630101711-a0eb38c885c5 h1:e6TbliVnWP/FUoMwpkzT2lBzINogtoK0VR2dI0iUl1M=+go.mau.fi/whatsmeow v0.0.0-20250630101711-a0eb38c885c5/go.mod h1:bEyyFvXlwr/18B2pOkdX1vWAx1+y1NJX+sCXVyw01UA=go.uber.org/multierr v1.11.0 h1:blXXJkSxSSfBVBlC76pxqeO+LN3aDfLQo+309xJstO0=go.uber.org/multierr v1.11.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y=golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=