Commit graph

195 commits

Author SHA1 Message Date
Steffen Vogel df773a9670 updated file headers 2015-12-03 13:53:21 +01:00
Steffen Vogel 7f227e5643 Merge branch 'yowsup-2' of github.com:stv0g/transwhat into yowsup-2 2015-12-03 13:50:43 +01:00
Steffen Vogel 75a0f310e3 removed transWhat config file (closes #23) 2015-12-03 13:49:44 +01:00
Steffen Vogel a9e97d16d5 removed \fortune and \motd functionality from bot 2015-12-03 13:49:15 +01:00
Steffen Vogel f5a668e589 removed support for contact import from google (@moyamo, did you added this again?) 2015-12-03 13:48:25 +01:00
Steffen Vogel ce8fd39b35 updated Bot commands 2015-12-03 13:44:13 +01:00
Steffen Vogel a84e7258d5 removed example configurations and message of the day (now part of
INSTALL.md)
2015-12-03 13:35:34 +01:00
Steffen Vogel 0594a887dc Update USAGE.md 2015-12-03 13:34:00 +01:00
Steffen Vogel 10e793fc46 fixed table and added information about login 2015-12-03 13:32:45 +01:00
Steffen Vogel d36c9e0987 added links to README.md 2015-12-03 13:28:54 +01:00
Steffen Vogel 4d07994d02 Create USAGE.md 2015-12-03 13:23:24 +01:00
Steffen Vogel 927bb0aa5c Create INSTALL.md 2015-12-03 13:19:08 +01:00
Steffen Vogel fa47742682 merged documentation from old project wiki to Github 2015-12-03 13:16:21 +01:00
Steffen Vogel 759f94ed18 reformated GPL3 license file to Markdown 2015-12-03 13:03:02 +01:00
Steffen Vogel da6ae5fd65 Merge pull request #22 from moyamo/yowsup-2
Remove MySQL server in favour of using spectrum
2015-12-03 14:00:52 +02:00
moyamo dc43506038 Remove MySQL installation instructions 2015-12-02 23:12:52 +02:00
moyamo b78e694531 Merge remote-tracking branch 'upstream/yowsup-2' into yowsup-2 2015-12-02 23:09:11 +02:00
moyamo 17c8057db7 Remove all mention of MySQL database 2015-12-02 23:08:09 +02:00
moyamo c44baf892d Properly detect/send presence when updating buddy 2015-12-02 22:51:29 +02:00
moyamo 5a8874c9b9 Subscribe to presence only after user has logged in
Buddy.py would try to subscribe to presence before the user had logged
in to whatsapp. A loginQueue was added, so that functions could be
deferred to login.
2015-12-02 19:32:55 +02:00
moyamo 8385888e97 Minor bug fixes 2015-12-01 23:21:38 +02:00
moyamo 107354af81 Move updateRoster code to BuddyList 2015-12-01 21:57:53 +02:00
moyamo da8a415d32 Remove MySQL from Buddy.py 2015-12-01 21:33:02 +02:00
moyamo 06388685d4 Update SpectrumBackend and build protocol buffers
This is to use the new handleBuddies feature.
2015-12-01 20:07:57 +02:00
Steffen Vogel 5c90783bc4 added transwhat and spectrum example confirmations 2015-11-29 17:34:39 +01:00
Steffen Vogel 0421df20a3 added dazzlle to credits 2015-11-29 17:14:38 +01:00
Steffen Vogel b458ef8103 Merge pull request #20 from moyamo/yowsup-2
Message Receipts, improved groupchats, http upload for images.
2015-11-29 18:07:48 +02:00
moyamo e111b0fcff If an image download fails, just send the link. 2015-11-29 17:08:59 +02:00
moyamo b34643a756 Handle a user leaving a group chat. 2015-11-29 16:32:33 +02:00
moyamo bd74021ca6 Typing \leave in a MUC will leave the group chat 2015-11-27 22:01:16 +02:00
Steffen Vogel 02e6b89bd1 Update README.md 2015-11-25 22:30:11 +01:00
Steffen Vogel 246f5cfdb8 started working on "Getting Started" section 2015-11-25 20:02:26 +01:00
moyamo 8e08efabc9 Notify user when a group message is sent to a group they have not yet joined
Before messages sent to groups the user had not joined were lost. Now
the message is sent via the bot to the user. The bot suggests that the
user join the group and also relays the contents of the message.
2015-11-23 17:07:18 +02:00
moyamo 1cec0a4e30 Add fortune paths for Debian based systems 2015-11-23 16:06:50 +02:00
moyamo 03d4a98fc7 Change error messages is backend.py to debug messages 2015-11-23 15:34:37 +02:00
moyamo a95b88e7c8 Remove duplicate MediaProtocolLayer
Prevents user from receiving duplicate media messages.
2015-11-23 14:57:39 +02:00
moyamo cb041395db Prevent a None image_hash from causing a TypeError 2015-11-10 20:39:25 +02:00
DaZZZl f269bf5be7 fix presence 2015-11-10 17:04:20 +01:00
DaZZZl bcd5e7e541 do not send messages on every login 2015-11-10 14:00:38 +01:00
root 40495601ed Merge branch 'moyamo-groupchat-fix' into yowsup2-port 2015-11-10 13:25:38 +01:00
root c5b42044b2 Merge branch 'groupchat-fix' of https://github.com/moyamo/transwhat into moyamo-groupchat-fix
Conflicts:
	Spectrum2/backend.py
	session.py
	yowsupwrapper.py
2015-11-10 13:24:40 +01:00
root 98b9487c7f send imgaes, locations, ...
fix presence
2015-11-09 23:09:12 +01:00
moyamo dbb66e0381 Prevent no caption in an image from crashing transwhat 2015-11-05 17:57:16 +02:00
dazzzl 1b16e55f73 Merge pull request #1 from moyamo/yowsup-2
update
2015-11-05 14:30:43 +01:00
moyamo 1c0ae79ec2 Fix join room, inform user of all groups, and new participants
In the previous implementation join_room was called on all groups immediately
after the user was authenticated.  When a user joined a group, join_room will be
called again. This was incorrect behaviour and confused spectrum. There was no
truncation error, thus _shortenGroupId and _lengthenGroupId have edited to be a
no-op (and should be removed in the next commit).

The correct behavoiur is to only call join_room in
whatsappbackend.py:handleRoomJoined, however the user may do this before the
groups have been loaded, in which case those requests must be added to a queue.

The bot informs the user of all the groups the user has joined and when the user
is added to a new group.
2015-10-26 19:27:35 +02:00
Steffen Vogel 4c86463be8 Merge pull request #13 from moyamo/wiretag-fix
Pass only expected data to parseFromString
2015-10-09 20:26:27 +02:00
moyamo 744efd154f Use notify as buddies nickname when sending groupchats. 2015-10-09 18:45:17 +02:00
moyamo a5877bc1a9 Try to prevent transwhat from crashing on malformed protobuf 2015-10-09 18:45:17 +02:00
moyamo 29d92b456e Shorten the name of groupchats to overcome truncation bug
The names of groupchats are truncated internally to 22 characters.
This causes many problems with groupchats, since spectrum incorrectly
identifies the chat by the long name.

To overcome this the phoneNumber-unixTime is converted to hexadecimal,
to shorten the groupchat below 22 characters
2015-10-09 18:42:59 +02:00
moyamo ecfa2d7f85 Attempt to fix groupchats 2015-10-09 18:42:59 +02:00