Open JOOKER69 opened 4 years ago
You should use sink_worker in yowsup/yowsup/demos/common/
def __init__(self):
...
self._sink_worker = None
@ProtocolEntityCallback("message")
def onMessage(self, messageProtocolEntity):
msgType = messageProtocolEntity.getType()
if msgType == 'text':
self.onTextMessage(messageProtocolEntity)
elif msgType == 'media':
self.on_media_message(messageProtocolEntity)
def on_media_message(self, media_message_protocolentity):
self._sink_worker.enqueue(media_message_protocolentity)
Here's good example
Hi, I did have read so many posts/threads about decryption/downloading media files but I can't get it download decoded. Could somebody help me and other ppl, and update my following 'layer.py' code to get it done please?