fbchat: [FIXED] Bug in reception of images
When images without text body is sent, it just called on_message_error and not on_message making users unable to handle them.
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 17 (9 by maintainers)
Commits related to this issue
- fixed #60 — committed to thekindlyone/fbchat by thekindlyone 8 years ago
- Merge pull request #87 from MKolman/python3-patch Fixes the issue #60 for Python3 — committed to fbchat-dev/fbchat by carpedm20 7 years ago
@Bravo111 try this instead of the offending line⦠should work.
return json.loads(r._content[9:].decode('utf-8'))['payload']['metadata'][0]