Giter VIP home page Giter VIP logo

go-whatsapp-cli's Introduction

Go WhatsApp Implementation in Command-Line Interface (CLI)

This repository contains example of implementation Rhymen/go-whatsapp package. This example is using a codebase from dimaskiddo/codebase-go-cli.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

Prequisites packages:

  • Go (Go Programming Language)
  • Dep (Go Dependencies Management Tool)
  • Make (Automated Execution using Makefile)

Optional packages:

  • GoReleaser (Go Automated Binaries Build)

Installing

Below is the instructions to make this codebase running:

  • Create a Go Workspace directory and export it as the extended GOPATH directory
cd <your_go_workspace_directory>
export GOPATH=$GOPATH:"`pwd`"
  • Under the Go Workspace directory create a source directory
mkdir -p src/github.com/dimaskiddo/go-whatsapp-cli
  • Move to the created directory and pull codebase
cd src/github.com/dimaskiddo/go-whatsapp-cli
git clone -b master https://github.com/dimaskiddo/go-whatsapp-cli.git .
  • Run following command to pull dependecies package
make vendor
  • Until this step you already can run this code by using this command
make run

Running The Tests

Currently the test is not ready yet :)

Deployment

To build this code to binaries for distribution purposes you can run following command:

make release

The build result will shown in build directory Or use Docker Images available in dimaskiddo/go-whatsapp-cli

Built With

  • Go - Go Programming Languange
  • Dep - Go Dependency Management Tool
  • GoReleaser - Go Automated Binaries Build
  • Make - GNU Make Automated Execution

Authors

  • Dimas Restu Hidayanto - Initial Work - DimasKiddo

See also the list of contributors who participated in this project

Annotation

You can seek more information for the make command parameters in the Makefile

go-whatsapp-cli's People

Contributors

dimaskiddo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

go-whatsapp-cli's Issues

error decoding login

go-whatsapp-cli $ error decoding login%!(EXTRA *json.UnmarshalTypeError=json: cannot unmarshal array into Go value of type map[string]interface {})

stuck

Hi, I think I found a bug, or maybe I lost something?

% go run cmd/main/main.go daemon
INFO[2020-10-18T15:08:46+07:00] whatsapp version 2.2035.15
INFO[2020-10-18T15:08:46+07:00] starting communication with whatsapp
INFO[2020-10-18T15:08:48+07:00] logged in to whatsapp as 44744723xxxx

and stuck, not respond with hi message.

Daemon error

I got these errors when running the daemon.

connection closed unexpetedly, reconnecting after 30 seconds
error processing data: error decoding binary: could not decode binary: invalid string with tag 174

Question about handler

How do I use the textMessgeHandler? ive tried to use it, modified the code but cant seem to learn where to properly call the function nd how. And it doesn't do anything with the default code.
thanks in advance

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.