From 78928fda7733aaf7d5fc763434e2f6ed61546327 Mon Sep 17 00:00:00 2001 From: botcs Date: Wed, 8 Mar 2017 10:28:13 +0100 Subject: [PATCH] fix None issue --- fbchat/client.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fbchat/client.py b/fbchat/client.py index 63ae8f0..c21190c 100644 --- a/fbchat/client.py +++ b/fbchat/client.py @@ -532,6 +532,7 @@ class Client(object): # deprecated # `start` doesn't matter, always returns from the last # data['messages[{}][{}][offset]'.format(key, userID)] = start + data['messages[{}][{}][offset]'.format(key, userID)] = 0 data['messages[{}][{}][limit]'.format(key, userID)] = last_n data['messages[{}][{}][timestamp]'.format(key, userID)] = now() @@ -568,7 +569,7 @@ class Client(object): data = { 'client' : self.client, 'inbox[offset]' : start, - 'inbox[limit]' : end, + 'inbox[limit]' : 19, } r = self._post(ThreadsURL, data)