Coder Social home page Coder Social logo

libwa's Introduction

WhatsApp C library

A fast and lightweight C library to connect to WhatsApp. Requires a phone with a working version and connected to the internet, similarly as the web version.

The following libraries are required:

  • libwebsockets
  • libqrencode
  • libcrypto
  • libjson-c
  • libprotobuf-c
  • libcrypto (OpenSSL)

Still under HEAVY development. Pull requests are appreciated.

Based on the great reverse engineering work of sigalor: whatsapp-web-reveng

Objective

The library will provide a simple way to build clients. For instance a bitlbee plugin to add WhatsApp as an available protocol to IRC.

Current status

The library provides the ability to send and receive private text messages, no photos or other media are supported yet, neither group messages.

The built-in client wac reads from the standard input, and sends the lines as messages to the specified recipient in the argument. The received messages are shown in the standard output. The phone should be specified in the following format:

<country code><phone>@s.whatsapp.net

For example, the number 666666666 in Spain, would be [email protected]. Some examples using the standard input:

% [email protected]
% wac $PHONE
Hi, do you read me?
Yes!

It can also be piped, as any UNIX like program, for example:

% echo Hi from the command line | wac $PHONE

Or to get a remote shell:

% mkfifo fifo
% wac $PHONE < fifo | bash > fifo

A screenshot of the test commands

libwa's People

Contributors

rodarima avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

libwa's Issues

Update in token table

Hi Rodrigo!

i was trying to use the whatsapp plugin with bitlbee but i found it crashed when it tried to ask for and element in the token_tag list in the nodeb class, it looked for the element 174 but the list have elements until the 162, do you have a newer version or help me to figure out which tag should i use?

libwa not logging into wa

Hi again rodrigo, i wasnt using this lib in some time and i cant see new commits to this project, are you still maintaining it? if yes, i was setting up the bitlbee-wa and i am getting this error regarding to not finding a "ref" key ni the response element at login.

image

dont know if in this 2 years the login response have changed.

Provide a nuget package

Would be nice if there could be a nuget package I could download of this compiled. I'm working on generating a PowerShell module that people could easily use.

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.