diff --git a/CHANGELOG b/CHANGELOG index 8caa723..3375ffa 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -4,6 +4,11 @@ FBMQ Changelog Latest ------ +2.0.1 +_____ + +* Feature : page.send method return Response + 2.0.0 ----- diff --git a/fbmq/__init__.py b/fbmq/__init__.py index 8537919..13bb34f 100644 --- a/fbmq/__init__.py +++ b/fbmq/__init__.py @@ -1,4 +1,4 @@ -__version__ = '2.0.0' +__version__ = '2.0.1' from .fbmq import * from . import attachment as Attachment diff --git a/fbmq/fbmq.py b/fbmq/fbmq.py index 956be72..31c5a16 100644 --- a/fbmq/fbmq.py +++ b/fbmq/fbmq.py @@ -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 @@ -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),