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

Most upvoted comments

@Bravo111 try this instead of the offending line… should work.
return json.loads(r._content[9:].decode('utf-8'))['payload']['metadata'][0]