From 884af482707cdf93c609c59a804438fdbe9a8ed2 Mon Sep 17 00:00:00 2001 From: Mads Marquart Date: Wed, 21 Mar 2018 10:05:07 +0100 Subject: [PATCH] Version up, thanks to @gave92 Properly fixed `markAsRead`, @gave92 reminded me that I forgot to change the `True` to `'true'` when removing `encode_params` --- fbchat/__init__.py | 2 +- fbchat/client.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/fbchat/__init__.py b/fbchat/__init__.py index c68bba3..329459d 100644 --- a/fbchat/__init__.py +++ b/fbchat/__init__.py @@ -17,7 +17,7 @@ from .client import * __copyright__ = 'Copyright 2015 - {} by Taehoon Kim'.format(datetime.now().year) -__version__ = '1.3.5' +__version__ = '1.3.6' __license__ = 'BSD' __author__ = 'Taehoon Kim; Moreels Pieter-Jan; Mads Marquart' __email__ = 'carpedm20@gmail.com' diff --git a/fbchat/client.py b/fbchat/client.py index 045cd0d..4698155 100644 --- a/fbchat/client.py +++ b/fbchat/client.py @@ -1269,9 +1269,9 @@ class Client(object): :raises: FBchatException if request failed """ data = { - "ids[%s]" % thread_id: True, + "ids[%s]" % thread_id: 'true', "watermarkTimestamp": now(), - "shouldSendReadReceipt": True, + "shouldSendReadReceipt": 'true', } r = self._post(self.req_url.READ_STATUS, data)