From 06da486140714bbc70d6de78104fa9146fa25193 Mon Sep 17 00:00:00 2001 From: Kacper Ziubryniewicz Date: Fri, 24 Aug 2018 21:56:31 +0200 Subject: [PATCH] Backwards compability for plans/event reminders --- fbchat/client.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/fbchat/client.py b/fbchat/client.py index 58388a6..ef3ced2 100644 --- a/fbchat/client.py +++ b/fbchat/client.py @@ -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