whatsapp-multi-devicewhatsapp-apiwhatsapprestgolanggobotwhatsapp-web-multi-devicewhatsapp-api-gorest-apigolang-whatsapp-apigolang-whatsapp
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 KiB
10 KiB
Go Whatsapp API Multi Device Version
Required (without docker)
- Mac OS:
brew install vipsexport CGO_CFLAGS_ALLOW="-Xpreprocessor"
- Linux:
sudo apt updatesudo apt install libvips-dev
- Windows (not recomended, prefer using WSL):
- install vips library, or you can check here https://www.libvips.org/install.html
- add to environment variable
How to use
Basic
- Clone this repo
git clone https://github.com/aldinokemal/go-whatsapp-web-multi-device - open via cmd/terminal
- run
cd src - run
go run main.go - open
http://localhost:3000
Docker (you don't need to install in required)
- Clone this repo
git clone https://github.com/aldinokemal/go-whatsapp-web-multi-device - open via cmd/terminal
- run
docker-compose up -d --build - open
http://localhost:3000
Build your own binary
- Clone this repo
git clone https://github.com/aldinokemal/go-whatsapp-web-multi-device - open via cmd/terminal
- run
go install github.com/markbates/pkger/cmd/pkger@latest - run
cd src - run
- Linux & MacOS:
pkger && go build -o whatsapp - Windows (CMD, not PowerShell):
pkger.exe && go build -o whatsapp.exe
- Linux & MacOS:
- run
- Linux & MacOS:
./whatsapp - Windows:
.\whatsapp.exeor you can double-click it
- Linux & MacOS:
- open
http://localhost:3000in browser
Production Mode (without config)
docker run --publish 3000:3000 --restart=always aldinokemal2104/go-whatsapp-web-multidevice
You can fork or edit this source code !
Current API
You can check docs/openapi.yml for detail API
| Feature | Menu | Method | URL | Payload | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ✅ | Login | GET | /app/login | |||||||||||||||||||||||||
| ✅ | Logout | GET | /app/logout | |||||||||||||||||||||||||
| ✅ | Reconnect | GET | /app/reconnect | |||||||||||||||||||||||||
| ✅ | User Info | GET | /user/info |
|
||||||||||||||||||||||||
| ✅ | User Avatar | GET | /user/avatar |
|
||||||||||||||||||||||||
| ✅ | User My Group List | GET | /user/my/groups | |||||||||||||||||||||||||
| ✅ | User My Privacy Setting | GET | /user/my/privacy | |||||||||||||||||||||||||
| ✅ | Send Message (Text) | POST | /send/message |
|
||||||||||||||||||||||||
| ✅ | Send Message (Image) | POST | /send/image |
|
||||||||||||||||||||||||
| ✅ | Send Message (File) | POST | /send/file |
|
||||||||||||||||||||||||
| ❌ | Send Message (Video) | POST | /send/video |
|
✅ = Available
❌ = Not Available Yet
App User Interface
Mac OS NOTE
- Please do this if you have an error (invalid flag in pkg-config --cflags: -Xpreprocessor)
export CGO_CFLAGS_ALLOW="-Xpreprocessor"








