Skip to content

Commit

Permalink
Fix attribute error i.e str object has no attribute value for notific…
Browse files Browse the repository at this point in the history
…ation type
  • Loading branch information
Felix Cheruiyot committed Nov 29, 2016
1 parent 105497b commit eabf015
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pymessenger/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit eabf015

Please sign in to comment.