Skip to content

Commit

Permalink
Add _send_payload back in
Browse files Browse the repository at this point in the history
 for backwards compatibility
  • Loading branch information
drice authored Sep 16, 2016
1 parent 107f55f commit b5715d6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pymessenger/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,11 @@ def send_action(self, recipient_id, action):
'sender_action': action
}
return self.send_raw(payload)


def _send_payload(self, payload):
''' Deprecated, use send_raw instead '''
return self.send_raw(payload)

def send_raw(self, payload):
request_endpoint = '{0}/me/messages'.format(self.graph_url)
response = requests.post(
Expand Down

2 comments on commit b5715d6

@Cretezy
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@Cretezy
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixes the tests! Nice, sorry for forgetting about this

Please sign in to comment.