Golang API for Whatsapp API MultiDevice version

Overview

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 string querystring 6289685024099
User Avatar GET /user/avatar
Param Type Type Example
phone string querystring 6289685024099
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 string form-data 6289685024099
message string form-data Hello guys this is testing
Send Message (Image) POST /send/image
Param Type Type Example
phone string form-data 6289685024099
caption string form-data Hello guys this is caption
view_once bool form-data false
image binary form-data image/jpg,image/jpeg,image/png
Send Message (File) POST /send/file
Param Type Type Example
phone string form-data 6289685024099
file binary form-data any (max: 10MB)
Send Message (Video) POST /send/video
Param Type Type Example
phone string form-data 6289685024099
video binary form-data mp4/avi/mkv
✅ = Available
❌ = Not Available Yet

App User Interface

  1. Homepage Homepage
  2. Login Login
  3. Send Message Send Message
  4. Send Image Send Image
  5. Send File Send File
  6. User Info User Info
  7. User Avatar User Avatar
  8. User Privacy User My Privacy
  9. User Group List Group

Mac OS NOTE

  • Please do this if you have an error (invalid flag in pkg-config --cflags: -Xpreprocessor) export CGO_CFLAGS_ALLOW="-Xpreprocessor"
Comments
  • can't sent to group chat

    can't sent to group chat "phone: must be a valid E164 number"

    curl -X POST -F '[email protected]' -F 'message=hi' http://172.17.12.185:3000/send/message

    {"code":400,"message":"phone: must be a valid E164 number.","results":null}

    opened by punyahenry 6
  • message: the length must be between 1 and 50

    message: the length must be between 1 and 50

    got error when sending message to personal and group, return json error: {code: 400, message: "message: the length must be between 1 and 50.", results: null}

    it's have limitation on sending message?

    opened by punyahenry 2
  • feat: allow to change os name

    feat: allow to change os name

    Context

    • Some of you probably would like to change the app name with your application name, now you can do this with simple command --os=MyApplication
    opened by aldinokemal 0
  • feat: move file to storage folder

    feat: move file to storage folder

    Context

    • Currently is hard to update the version without relogin, so we need to create one folder to save all data. Furthermore, this will make it easily binding volume with the docker
    opened by aldinokemal 0
  • feat: add send video

    feat: add send video

    Context

    • Currently we cannot send whatsapp video via API

    Changes

    1. Add endpoint to send whatsapp video
    2. Update openapi
    3. Update docker configuration
    4. Update User Interface
    opened by aldinokemal 0
  • feat: add customable params

    feat: add customable params

    Context:

    • currently, we cannot change port and debug mode dynamically because it is hardcoded

    Changes:

    1. Add Customizable port with --port <number>.
    2. Add Customizable debug --debug <true/false>.
    3. Add Auto reply command --autoreply <string> | when our device receives a message then this app is going to send an auto-reply with a custom message.
    opened by aldinokemal 0
  • feat: embed template html files to binary

    feat: embed template html files to binary

    Context

    • Currently, when we compile this app, we need to create a statics folder, and views by manual, we need to make it automatic by code

    Changelogs

    1. Make views embed in binary
    2. Update docs
    3. Update docker config
    4. Update docker hub
    opened by aldinokemal 0
  • feat: add image thumbnail when send image

    feat: add image thumbnail when send image

    Context

    The thumbnail isn't displayed in the receiver device when sending an image, making a blank image.

    Changes:

    1. Add a thumbnail when sending an image
    opened by aldinokemal 0
Releases(v4.0.0)
Owner
Aldino Kemal
Just play
Aldino Kemal
go-whatsapp-rest-API is a Go library for the WhatsApp web which use Swagger as api interface

go-whatsapp-rest-API go-whatsapp-rest-API is a Go library for the WhatsApp web which use Swagger as api interface Multi-devices (MD) Support. This ver

null 17 Nov 30, 2022
Package rhymen/go-whatsapp implements the WhatsApp Web API to provide a clean interface for developers

go-whatsapp Package rhymen/go-whatsapp implements the WhatsApp Web API to provide a clean interface for developers. Big thanks to all contributors of

Relldev メイ 3 Mar 19, 2022
Simple RESTful API for WhatsApp in Golang (using the Whatsmeow multi device library)

WUZAPI WuzAPI is an implementation of @tulir/whatsmeow library as a simple RESTful API service with multiple device support and concurrent sessions. W

Nicolas 16 Nov 23, 2022
WhatsApp Web API

go-whatsapp Package rhymen/go-whatsapp implements the WhatsApp Web API to provide a clean interface for developers. Big thanks to all contributors of

Lucas Engelke 1.8k Dec 3, 2022
WhatsAppExpenseTracker - Way to track expenses using whatsapp group

WhatsAppExpenseTracker Way to track expenses using whatsapp group One needs to c

Randeep Sharma 0 Jan 4, 2022
This is a Golang wrapper for working with TMDb API. It aims to support version 3.

This is a Golang wrapper for working with TMDb API. It aims to support version 3. An API Key is required. To register for one, head over to themoviedb

Cyro Dubeux 61 Oct 22, 2022
The client of NodeStatus / Golang Version

NodeStatus-client-go The client of NodeStatus written in Golang 使用说明 请直接下载release下的对应平台的二进制文件。 运行时需传入客户端对应参数。 假设你的服务端地址是https://tz.mydomain.com,客户端用户名

神楽坂みずき 21 Sep 5, 2022
okex v5sdk for go version

okex v5sdk for go version

wang 42 Dec 1, 2022
The task is to develop a basic version of a Instagram.

Golang-api-task Developer: Mukka Deepak The task is to develop a basic version of aInstagram. You are only required to develop the API for the system.

Mukka Deepak 1 Oct 23, 2021
The task given by Appointy completed to develop APIs for a basic version of Instagram.

✨ Instagram APIs ✨ The task given by Appointy completed to develop APIs for a basic version of Instagram. Create an User Get User by Id Create a Post

Aayush Chodvadiya 1 Oct 9, 2021
A serverless teeny-tiny version of Diomedes which sends alerts to Telegram. Written in Go.

diomedes-search Get a notification on Telegram whenever your movie opens bookings in a theater of your choice. Pre-requisites Install AWS CLI (v2) by

Kanishk Singh 2 Oct 11, 2022
Sdk-go - Go version of the Synapse SDK

synapsesdk-go Synapse Protocol's Go SDK. Currently in super duper alpha, do not

null 0 Jan 7, 2022
Go-archvariant - Go package for determining the maximum compatibility version of the current system

go-archvariant Go package for determining the maximum compatibility version of t

Tõnis Tiigi 6 Feb 19, 2022
🐥 Sturdy is an open-source, real-time, version control platform for startups

Welcome to Sturdy! ?? ?? Real-time code collaboration. Sturdy is an open-source version control platform that allows you to interact with your code at

Sturdy 473 Dec 1, 2022
Simple-Weather-API - Simple weather api app created using golang and Open Weather API key

Simple Weather API Simple weather api app created using golang and Open Weather

Siva Prakash 3 Feb 6, 2022
An API client for the Notion API implemented in Golang

An API client for the Notion API implemented in Golang

Anatoly Nosov 347 Nov 27, 2022
A API scanner written in GOLANG to scan files recursively and look for API keys and IDs.

GO FIND APIS _____ ____ ______ _____ _ _ _____ _____ _____ _____ / ____|/ __ \ | ____|_ _| \ | | __ \ /\ | __ \_

Sreekanth Sasi 3 Oct 25, 2021
Arweave-api - Arweave API implementation in golang

Arweave API Go implementation of the Arweave API Todo A list of endpoints that a

Joshua Lawson 1 Jan 16, 2022
Reservationbox-api - Reservationbox Api with golang

reservationbox-api How to set up application Cloning git on this link : https://

null 0 Jan 30, 2022