From 160386be62599b689a4c01b5bac1a55ccb553e0a Mon Sep 17 00:00:00 2001 From: Mads Marquart Date: Fri, 9 Nov 2018 20:08:26 +0100 Subject: [PATCH] Added support for `request_batch` parsing in `_parseMessage` --- fbchat/client.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/fbchat/client.py b/fbchat/client.py index 022850b..e6e04fc 100644 --- a/fbchat/client.py +++ b/fbchat/client.py @@ -1993,6 +1993,10 @@ class Client(object): self.sticky = content['lb_info']['sticky'] self.pool = content['lb_info']['pool'] + if 'batches' in content: + for batch in content['batches']: + self._parseMessage(batch) + if 'ms' not in content: return for m in content["ms"]: