From 8e65074b1153259adb5e4efc759b20ae4e234c77 Mon Sep 17 00:00:00 2001 From: Mads Marquart Date: Wed, 17 Apr 2019 21:56:50 +0200 Subject: [PATCH] Hotfixes Fix mistakes introduced in #415 --- fbchat/_client.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/fbchat/_client.py b/fbchat/_client.py index f4a812f..c72c88d 100644 --- a/fbchat/_client.py +++ b/fbchat/_client.py @@ -278,7 +278,9 @@ class Client(object): "response_format": "json", "queries": graphql_queries_to_json(*queries), } - return tuple(self._post(data, as_graphql=True)) + return tuple( + self._post(self.req_url.GRAPHQL, data, fix_request=True, as_graphql=True) + ) def graphql_request(self, query): """ @@ -3021,7 +3023,7 @@ class Client(object): def _parseMessage(self, content): """Get message and author name from content. May contain multiple messages in the content.""" - self.seq = j.get("seq", "0") + self.seq = content.get("seq", "0") if "lb_info" in content: self.sticky = content["lb_info"]["sticky"]