From 2ea2c89b4a3d914f6de0c5506cd8a06616fe55b9 Mon Sep 17 00:00:00 2001 From: Mads Marquart Date: Thu, 27 Sep 2018 21:44:04 +0200 Subject: [PATCH] Fixed `markAsRead` and `markAsUnread`, fixes #336 --- fbchat/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fbchat/client.py b/fbchat/client.py index f3e629f..4f314f5 100644 --- a/fbchat/client.py +++ b/fbchat/client.py @@ -1723,7 +1723,7 @@ class Client(object): } for thread_id in thread_ids: - data["ids[{}]".format(thread_id)] = read + data["ids[{}]".format(thread_id)] = 'true' if read else 'false' r = self._post(self.req_url.READ_STATUS, data) return r.ok