moyamo
646f45434b
Crude implementation of groupchat
7 years ago
moyamo
4fd313e516
Download whatsapp profile pictures
...
Everytime the user requests a VCard the profile pictures are updated.
The sha1hash hash of the picture is calculated and stored in buddy.
7 years ago
moyamo
d2efa0dd7b
Fix status message
7 years ago
moyamo
4c365e3f81
Add receiveing of images, videos and sound files
...
When a whatsapp buddy sends an image, video or sound to the spectrum
user, the spectrum user will receive a URL that links to the media.
FileTranfer in spectrum is not working, apparently. Thus media cannot be
sent yet.
7 years ago
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.
7 years ago
moyamo
e43aeedd9d
Add presence and chatstate
...
* Chatstate typing and typing stop is sent and received
* Presence is received and presence is sent when user types
7 years ago
moyamo
67c5a7c951
Add presence updates and looping asyncore.loop()
...
Add functions to update presence and status
Make asyncore.loop() timeout after some time and call the functions in
the YowStack.__detachedQueue.
7 years ago
moyamo
48313c5475
Minor fixes
7 years ago
moyamo
47d52ae22c
Use new-style classes and Session should call super.__init__
7 years ago
moyamo
254465301b
Make Session use YowsupApp instead of SpectrumLayer
7 years ago
moyamo
8cc3c85145
Add a yowsup wrapper to simplify the session.py code
7 years ago
moyamo
c7afff2cf9
Add more protocol layers to the yowstack
7 years ago
moyamo
59754848a7
Enable Axolotl encryption as it is mandatory.
7 years ago
moyamo
2f73ed1a10
Send Acks and Receipts on receiving a message
7 years ago
moyamo
f2cadb7492
Reconnect when disconnected from whatsapp
7 years ago
moyamo
ba54217377
Send logs to logfile
7 years ago
moyamo
f871ed664b
Add PresenceProtocolEntity to YowStack
7 years ago
moyamo
f0a19d1b6c
Handle presence sent from whatsapp
7 years ago
moyamo
af0150866d
Add groups protocol layer
7 years ago
moyamo
85c320e24c
Send presence requests
7 years ago
moyamo
8b6a12c798
Add YowIqProtocolLayer to prevent connection from timing out
7 years ago
moyamo
31bbab2ab1
Remove default layers, The logging layer causes problems
7 years ago
moyamo
ebed803984
Use YowStackBuilder and the default stack
7 years ago
moyamo
926aa9a6c9
Send typing state updates
7 years ago
moyamo
6b1b714d3c
Remove the domain from the buddy name before message is sent
7 years ago
moyamo
0c17a497ee
Pass session into SpectrumLayer so that session specific things can be called
7 years ago
moyamo
ce1bf5d35b
Fix typo
7 years ago
moyamo
68f9ca43ea
Add ability to receive whatsapp messages
7 years ago
moyamo
0fd33d38bb
Add ability to send a message
7 years ago
moyamo
e94aa383bf
Remove redundent debug logs
7 years ago
moyamo
0ecc89d270
Catch TypeError thrown when password incorrectly formatted
7 years ago
moyamo
83f499b81d
Set the yowsup PATH_STORAGE
7 years ago
moyamo
8d8711b586
Comment out google client
7 years ago
moyamo
f40f077270
Comment out import contacts from Bot.py
...
This is interfering with testing.
7 years ago
moyamo
97c3aba3ec
Session.call takes in kwargs instead of args
8 years ago
moyamo
e9f40dbed9
Respond to presence updates
8 years ago
moyamo
99db6cce76
Disable googleclient
...
Google client is causing problems. Disable it for now.
8 years ago
moyamo
a496e01967
Handle disconnect from Yowsup
8 years ago
moyamo
c06bfac0a9
Add logging to IOChannel
8 years ago
moyamo
467cc80b0d
Catch AuthError
...
When authentication fails, yowsup throws and AuthError.
8 years ago
moyamo
9e35017523
Fix bug
8 years ago
moyamo
b651ba8c37
Stop Start-Event from propogating
8 years ago
moyamo
479efedc26
Add logger remove calls
8 years ago
moyamo
05525a8a3a
Fix bugs
8 years ago
moyamo
ae826b1341
Use YowLayerEvent instead of Prop
...
We cannot use Prop in the __init__ of a YowLayer, since Prop is
initialised only after all the YowLayers are initialized.
Instead, we send a YowLayerEvent containing the values.
8 years ago
moyamo
74a09ad07f
Fix typo
8 years ago
moyamo
1ebf4e5cc9
Add SpectrumLayer to YowStack and handle Auth
...
Things that Session handled should be handled by a YowInterfaceLayer.
SpectrumLayer is such a layer. Paramaters that Session's __init__ is
passed into SpectrumLayer via Props.
8 years ago
moyamo
9fc0dc7333
Add logout event and disable call
8 years ago
moyamo
1878a30fb6
Authenticate user with legacyName and password
...
I forgot to send the legacyName with the password when authenticating.
8 years ago
moyamo
8dcc028548
Add Yowsup stack to session
...
Try to replace the old yowsup library by using a yowsup 2 stack.
8 years ago