Comments (7)
I've never tried ;) I'll fix today.
from yowsup.
I'm having this problem too.
thnks.
from yowsup.
Thanks!
Here's sample code so that you don't need to search for it:
entity = LocationMediaMessageProtocolEntity('41.3780485', '2.1249203', 'Example location', 'http://example.com', to='[email protected]')
self.toLower(entity)
from yowsup.
Hi, it's still not working, you need to change lines 525 and 526 in axolotl/layer.py
, "degress" to "degrees" too, and then it drops more errors:
Unhandled exception in thread started by <bound method LayerRacc.send_reply_delayed of <layer_whatsapp.layer_racc.LayerRacc object at 0x7f692b75a710>>
Traceback (most recent call last):
File "/home/astx/whatsbot/whatsapp-bot/layer_whatsapp/layer_racc.py", line 170, in send_reply_delayed
self.toLower(entity)
File "/home/astx/whatsbot/env/local/lib/python2.7/site-packages/yowsup2-2.4.48-py2.7.egg/yowsup/layers/__init__.py", line 79, in toLower
self.__lower.send(data)
File "/home/astx/whatsbot/env/local/lib/python2.7/site-packages/yowsup2-2.4.48-py2.7.egg/yowsup/layers/__init__.py", line 192, in send
s.send(data)
File "/home/astx/whatsbot/env/local/lib/python2.7/site-packages/yowsup2-2.4.48-py2.7.egg/yowsup/layers/__init__.py", line 130, in send
send(entity)
File "/home/astx/whatsbot/env/local/lib/python2.7/site-packages/yowsup2-2.4.48-py2.7.egg/yowsup/layers/protocol_media/layer.py", line 37, in sendMessageEntity
self.entityToLower(entity)
File "/home/astx/whatsbot/env/local/lib/python2.7/site-packages/yowsup2-2.4.48-py2.7.egg/yowsup/layers/__init__.py", line 134, in entityToLower
self.toLower(entity.toProtocolTreeNode())
File "/home/astx/whatsbot/env/local/lib/python2.7/site-packages/yowsup2-2.4.48-py2.7.egg/yowsup/layers/__init__.py", line 79, in toLower
self.__lower.send(data)
File "/home/astx/whatsbot/env/local/lib/python2.7/site-packages/yowsup2-2.4.48-py2.7.egg/yowsup/layers/axolotl/layer.py", line 122, in send
self.handlePlaintextNode(node)
File "/home/astx/whatsbot/env/local/lib/python2.7/site-packages/yowsup2-2.4.48-py2.7.egg/yowsup/layers/axolotl/layer.py", line 190, in handlePlaintextNode
messageData = self.serializeToProtobuf(node) if v2 else node.getChild("body").getData()
File "/home/astx/whatsbot/env/local/lib/python2.7/site-packages/yowsup2-2.4.48-py2.7.egg/yowsup/layers/axolotl/layer.py", line 502, in serializeToProtobuf
return self.serializeMediaToProtobuf(node.getChild("media"))
File "/home/astx/whatsbot/env/local/lib/python2.7/site-packages/yowsup2-2.4.48-py2.7.egg/yowsup/layers/axolotl/layer.py", line 516, in serializeMediaToProtobuf
return self.serializeLocationToProtobuf(mediaNode)
File "/home/astx/whatsbot/env/local/lib/python2.7/site-packages/yowsup2-2.4.48-py2.7.egg/yowsup/layers/axolotl/layer.py", line 532, in serializeLocationToProtobuf
return m.SerializeToString()
File "/home/astx/whatsbot/env/local/lib/python2.7/site-packages/google/protobuf/internal/python_message.py", line 831, in SerializeToString
self.DESCRIPTOR.full_name, ','.join(self.FindInitializationErrors())))
google.protobuf.message.EncodeError: Message com.whatsapp.proto.Message is missing required fields: location_message.jpeg_thumbnail
from yowsup.
I've never tested ;)
I'll fix!
from yowsup.
Thanks! By the way, I'm using protobuf==3.0.0-alpha-1
from yowsup.
I've fixed typos in media while sending encrypted but they aren't still received (I get ack and receipt but not seen). I'll continue but this issue is fixed.
from yowsup.
Related Issues (20)
- virtual phone doesn't receiving SMS code
- Not work decrypt image any more HOT 7
- general: Disconnected: Connection Closed
- ImportError: cannot import name ProtocolTreeNode
- old version
- def decrypt(self, encimg, refkey): HOT 2
- [connected]:ERROR:yowsup.demos.cli.layer:Request upload for file /home/pi/Image.jpg for [email protected] failed
- How i can download media received from yowsup ?
- hi cannot login
- Couldn't receive a media, please help HOT 7
- Error when receiving a large txt message HOT 1
- Audio from groups OK, but not other media types. HOT 5
- enc images in echoclient HOT 2
- old_version
- common/tools.py: inconsistent use of tabs and spaces in indentation HOT 1
- Connection Closed. for android env. media cannot decrypt for s40 HOT 1
- demos not working HOT 8
- new confidentiality policy
- All the numbers used are being blocked HOT 1
- BAD_TOKEN with ENV_S40 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from yowsup.