WIP
Go to file
moyamo a6971ad889 Add workaround to prevent double messages
For some reason spectrum occasionally sends to identical messages to
a buddy, one to the bare jid and one to /bot. This causes duplicate
messages. Since it is unlikely a user wants to send the same message
twice, we should just ignore the second message.

This is only a work around, a proper fix should be implemented.
2015-09-05 11:39:34 +02:00
cgi added copyright and author infos 2013-08-02 01:45:51 +02:00
conf added mysql schema 2013-08-06 13:58:57 +02:00
Spectrum2 Add presence and chatstate 2015-09-03 20:04:29 +02:00
.gitignore updated gitignore 2013-08-02 01:50:09 +02:00
bot.py Comment out google client 2015-06-21 13:40:15 +02:00
buddy.py Add presence and chatstate 2015-09-03 20:04:29 +02:00
constants.py.sample added example configuration 2013-08-02 01:49:31 +02:00
COPYING.gpl3 added GPL v3 licence 2013-08-02 01:46:11 +02:00
googleclient.py Disable googleclient 2015-02-27 19:05:55 +02:00
group.py added copyright and author infos 2013-08-02 01:45:51 +02:00
reader.py added copyright and author infos 2013-08-02 01:45:51 +02:00
README.md Add more dependencies to README 2015-02-26 20:58:25 +02:00
session.py Add presence and chatstate 2015-09-03 20:04:29 +02:00
transwhat.py Add presence and chatstate 2015-09-03 20:04:29 +02:00
utils.py added copyright and author infos 2013-08-02 01:45:51 +02:00
whatsappbackend.py Add workaround to prevent double messages 2015-09-05 11:39:34 +02:00
yowsupwrapper.py Add presence and chatstate 2015-09-03 20:04:29 +02:00

transWhat

transWhat is a WhatsApp XMPP Gateway based on Spectrum2

Dependencies

Spectrum 2

is a XMPP transport

Manual compile latest version from https://github.com/hanzz/libtransport

e4u

is a simple emoji4unicode python wrapper library

Install with pip install e4u

Yowsup

is a Implementation of the WhatsApp protocol in python

Use my patched version at https://github.com/stv0g/yowsup

Google Atom and GData Python wrappers

required for Google contacts import

MySQLdb

required

Google protobuf

required

date.util

required

Contribute

Pull requests, bug reports etc. are welcome. Help us to provide a open implementation of the WhatsApp protocol.

Documentation

A project wiki is available here. A mailinglist for discussion is available here.

A writeup of this project is also availabe at my blog.