Skip to content

Commit b5715d6

Browse files
authored
Add _send_payload back in
for backwards compatibility
1 parent 107f55f commit b5715d6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

pymessenger/bot.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,11 @@ def send_action(self, recipient_id, action):
180180
'sender_action': action
181181
}
182182
return self.send_raw(payload)
183-
183+
184+
def _send_payload(self, payload):
185+
''' Deprecated, use send_raw instead '''
186+
return self.send_raw(payload)
187+
184188
def send_raw(self, payload):
185189
request_endpoint = '{0}/me/messages'.format(self.graph_url)
186190
response = requests.post(

0 commit comments

Comments
 (0)