Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make Bot class new class #37

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pymessenger/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class NotificationType(Enum):
no_push = "NO_PUSH"


class Bot:
class Bot(object):
def __init__(self, access_token, **kwargs):
"""
@required:
Expand Down 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