Giter Site home page Giter Site logo

kelixlabs / yowsup-queue Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jeanlinux/yowsup-queue

0.0 1.0 0.0 29 KB

This Project provides a 2 beanstalkd-Queues directly connected to the Yowsup2 Interface. You can Send/Receive Whatsapp-Messages with any language of your choice.

License: GNU General Public License v3.0

Python 100.00%

yowsup-queue's Introduction

#[DEPRECATED] yowsup-queue

This Project is deprecated. Please consider using https://github.com/EliasKotlyar/yowsup-microservice instead. It is not compatible to any Version of yowsup > 2.4

This Project provides a interface to yowsup2. You can Send/Receive Whatsapp-Messages with any language of your choice.

###Prerequisites:

Install & Configure the yowsup2 CLI Demo.

Use yowsup-cli to register a Number.

Install or use a Beanstalkd Server.

###Installation(on Ubuntu):

sudo apt-get install pip3 python3-dev

pip3 install pystalkd

pip3 install git+https://github.com/tgalal/yowsup@master

###Configuration:

rename "config.sample.ini" to "config.ini" and put your credentials into it.

###Usage:

Run the Main Handler with:

python3 run.py 

You will get the Messages from Whatsapp into the Queue "whatsapp-receive".

Put the messages you want to send into the "whatsapp-send" Queue. The Format of the Messages is JSON.

Integrations in other Languages/Software:

PHP: https://github.com/EliasKotlyar/yowsup-queue-php-api

###Example Messages for other Integrations:

Simple Message:

	{"type":"simple","body":"This is a Test-Message!","address":"12345678"}

Image Message:

	{"type":"image","image":"<imagedata in base64>","address":"12345678"}

###Known Issues:

Sometimes the keys are not synced. You will get Errors like this:

	Exception: No such signedprekeyrecord!

Fix it using:

	rm -r ~/.yowsup/
	(deleted the yowsup database)

On First Run,its not running well after the generation of the Keys. Please restart it.

Sending Images

For sending Images,you will need to increase the maximum Job Size for beanstalkd. Add -z bytes to the On Ubuntu,edit the File //etc/default/beanstalkd add "-z " to BEANSTALKD_EXTRA="" line.

use a value like 2000000(2 megabytes)

Credits go to: http://stackoverflow.com/questions/29199302/job-too-big-pheanstalk-what-can-be-done

Warning: Currently big Images are not supported due to a Bug. I suppose that it has someting to do with the beanstalkd-client.

yowsup-queue's People

Contributors

eliaskotlyar avatar ribro avatar

Watchers

Wahyu Kecambah Linux avatar

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.