From f822f35cc4b00d1205152c07d06cdfc9d5201c1e Mon Sep 17 00:00:00 2001 From: David Zhuang Date: Tue, 11 Apr 2017 15:03:23 -0400 Subject: [PATCH 1/2] make Bot new class --- pymessenger/bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pymessenger/bot.py b/pymessenger/bot.py index d0e5159..78acd21 100644 --- a/pymessenger/bot.py +++ b/pymessenger/bot.py @@ -15,7 +15,7 @@ class NotificationType(Enum): no_push = "NO_PUSH" -class Bot: +class Bot(object): def __init__(self, access_token, **kwargs): """ @required: From 441101ff409d8381d934449ae4799969759b61ce Mon Sep 17 00:00:00 2001 From: David Zhuang Date: Tue, 25 Apr 2017 16:56:23 -0400 Subject: [PATCH 2/2] Update bot.py --- pymessenger/bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pymessenger/bot.py b/pymessenger/bot.py index 78acd21..8569ace 100644 --- a/pymessenger/bot.py +++ b/pymessenger/bot.py @@ -46,7 +46,7 @@ def send_recipient(self, recipient_id, payload, notification_type=NotificationTy payload['recipient'] = { 'id': recipient_id } - payload['notification_type'] = notification_type.value + payload['notification_type'] = notification_type return self.send_raw(payload) def send_message(self, recipient_id, message, notification_type=NotificationType.regular):