Skip to content
This repository has been archived by the owner on Dec 14, 2018. It is now read-only.

Fix bot.py send_attachment bug and test script #14

Merged
merged 1 commit into from
May 23, 2017

Conversation

wcchoi
Copy link

@wcchoi wcchoi commented May 23, 2017

bot.py has the following bugs:

  • send_audio pass “image” to send_attachment
  • not closing file
  • extra {} around payload[“recipient”] and payload[“message”]
  • wrong usage of MultipartEncoder (payload key value should be JSON-string or tuple)
  • not specifying content-type when uploading attachment to Facebook
  • wrong url in requests.post

It should fix #11

bot.py has the following bugs:
- send_audio pass “image” to send_attachment
- not closing file
- extra {} around payload[“recipient”] and payload[“message”]
- wrong usage of MultipartEncoder (payload key value should be JSON-string or tuple)
- not specifying content-type when uploading attachment to Facebook
- wrong url in requests.post
@Cretezy Cretezy merged commit dafcece into Cretezy:master May 23, 2017
@Cretezy
Copy link
Owner

Cretezy commented May 23, 2017

Looks good. Thank you very much for this commit, will close #11 for now.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

error pymessenger2/pymessenger2/bot.py
2 participants