a6971ad889
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. |
||
---|---|---|
cgi | ||
conf | ||
Spectrum2 | ||
.gitignore | ||
bot.py | ||
buddy.py | ||
constants.py.sample | ||
COPYING.gpl3 | ||
googleclient.py | ||
group.py | ||
reader.py | ||
README.md | ||
session.py | ||
transwhat.py | ||
utils.py | ||
whatsappbackend.py | ||
yowsupwrapper.py |
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.