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.
 
 
 
 
 
Aldino Kemal eaf7efe849 chore: update docs 4 years ago
config feat: add send document API 4 years ago
controllers feat: add my privacy & my groups API 4 years ago
middleware feat: add error 401 4 years ago
services feat: add my privacy & my groups API 4 years ago
statics/images feat: add send document API 4 years ago
structs feat: add my privacy & my groups API 4 years ago
utils feat: add error 401 4 years ago
validations feat: add send document API 4 years ago
views initial commit 4 years ago
.air.toml initial commit 4 years ago
.gitignore chore: fix readme and add ignore 4 years ago
go.mod feat: add send image API 4 years ago
go.sum feat: add send image API 4 years ago
main.go feat: add error response more clear 4 years ago
readme.md chore: update docs 4 years ago

readme.md

Go Whatsapp API Multi Device Version

Required

  • Mac OS:
    • brew install vips
    • export CGO_CFLAGS_ALLOW="-Xpreprocessor"
  • Linux:
    • sudo apt update
    • sudo apt install libvips-dev
  • Windows (not recomended, prefer using WSL):

How to use

  1. Clone this repo git clone https://github.com/aldinokemal/go-whatsapp-web-multi-device
  2. run go run main.go
  3. open http://localhost:3000

You can fork or edit this source code !

Current API

Feature Menu Method URL Payload
Login GET /app/login
Logout GET /app/logout
Reconnect GET /app/reconnect
User Info GET /user/info
Param Type Type Example
phone_numberstringquerystring6289685024099
User Avatar GET /user/avatar
Param Type Type Example
phone_numberstringquerystring6289685024099
User My Group List GET /user/my/groups
User My Privacy Setting GET /user/my/privacy
Send Message (Text) POST /send/message
Param Type Type Example
phone_numberstringform-data6289685024099
messagestringform-dataHello guys this is testing
Send Message (Image) POST /send/image
Param Type Type Example
phone_numberstringform-data6289685024099
captionstringform-dataHello guys this is caption
view_onceboolform-datafalse
imagebinaryform-dataimage/jpg,image/jpeg,image/png
Send Message (File) POST /send/file
ParamTypeTypeExample
phone_numberstringform-data6289685024099
filebinaryform-dataany (max: 10MB)
Send Message (Video) POST /send/video
ParamTypeTypeExample
phone_numberstringform-data6289685024099
videobinaryform-datamp4/avi/mkv
✅ = Available
❌ = Not Available Yet

Mac OS NOTE

  • Please do this if you have an error (invalid flag in pkg-config --cflags: -Xpreprocessor) export CGO_CFLAGS_ALLOW="-Xpreprocessor"