Skip to content

Commit

Permalink
Merge pull request #13 from conbus/develop
Browse files Browse the repository at this point in the history
Develop 2.0.1
  • Loading branch information
Karl Woojung Kim authored Sep 22, 2016
2 parents 7856b78 + 95067ba commit e709ec6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ FBMQ Changelog
Latest
------

2.0.1
_____

* Feature : page.send method return Response

2.0.0
-----

Expand Down
2 changes: 1 addition & 1 deletion fbmq/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = '2.0.0'
__version__ = '2.0.1'

from .fbmq import *
from . import attachment as Attachment
Expand Down
4 changes: 3 additions & 1 deletion fbmq/fbmq.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,8 @@ def _send(self, payload, callback=None):
if self._after_send is not None:
self._after_send(payload, r)

return r

def send(self, recipient_id, message, quick_replies=None, metadata=None,
notification_type=None, callback=None):
text = message if isinstance(message, str) else None
Expand All @@ -270,7 +272,7 @@ def send(self, recipient_id, message, quick_replies=None, metadata=None,
metadata=metadata),
notification_type=notification_type)

self._send(payload, callback=callback)
return self._send(payload, callback=callback)

def typing_on(self, recipient_id):
payload = Payload(recipient=Recipient(id=recipient_id),
Expand Down

0 comments on commit e709ec6

Please sign in to comment.