Giter VIP home page Giter VIP logo

Comments (7)

jlguardi avatar jlguardi commented on August 23, 2024 1

I've never tried ;) I'll fix today.

from yowsup.

yniv avatar yniv commented on August 23, 2024

I'm having this problem too.
thnks.

from yowsup.

cfenollosa avatar cfenollosa commented on August 23, 2024

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.

cfenollosa avatar cfenollosa commented on August 23, 2024

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.

jlguardi avatar jlguardi commented on August 23, 2024

I've never tested ;)
I'll fix!

from yowsup.

cfenollosa avatar cfenollosa commented on August 23, 2024

Thanks! By the way, I'm using protobuf==3.0.0-alpha-1

from yowsup.

jlguardi avatar jlguardi commented on August 23, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.