Skip to content

abansal4032/go-whatsapp-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-whatsapp-cli

This repo builds over Rhymen/go-whatsapp to provide a cli for whatsapp.

Downloading

go get github.com/abansal4032/go-whatsapp-cli

Building

The Makefile consists of rules to help you build the project.

To build the project including the linters and fmt:
make all

To only build the binary:
make build

To clean:
make clean

The dependencies are vendored in the repository. Due to difference in how go 1.13 and go 1.14 treats vendor directory, there are two ways to run depending on the version:
go 1.13 : GO111MODULE=off go build
go 1.14 : go build
Make sure you make the changes in the Makefile if you are using go 1.13. The current file is amied for go 1.14.

Running

Current commands installed:
1. whatsapp-cli login: Logs you in
2. whatsapp-cli logout: Logs you out
3. whatsapp-cli sendText --to <phone_number> --text <text_message>: Sends the text_message to the phone_number
4. whatsapp-cli sendMedia --to <phone_number> --text <text_message> --filepath <file_path>: Sends the file contents to the uphone_number. Currently supports sending audio, video and images.\

NOTE : More coming soon...

About

A Golang CLI for whatsapp

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published