Backwards compability for plans/event reminders

This commit is contained in:
Kacper Ziubryniewicz
2018-08-24 21:56:31 +02:00
committed by GitHub
parent a24a7d5636
commit 06da486140

View File

@@ -1581,6 +1581,12 @@ class Client(object):
j = self._post(self.req_url.PLAN_PARTICIPATION, full_data, fix_request=True, as_json=True)
def eventReminder(self, thread_id, time, title, location='', location_id=''):
"""
Deprecated. Use :func:`fbchat.Client.createPlan` instead
"""
self.createPlan(plan=Plan(time=time, title=title, location=location, location_id=location_id), thread_id=thread_id)
def createPoll(self, poll, thread_id=None, thread_type=None):
"""
Creates poll in a group thread