From 1f359f2a721ad5819929f8c14e01f9c842559cf9 Mon Sep 17 00:00:00 2001 From: 2FWAH <36737818+2FWAH@users.noreply.github.com> Date: Sun, 3 Jun 2018 22:33:15 +0200 Subject: [PATCH] Call onTyping on "typ" or "ttyp" messages FB returns "typ" for ONE-TO-ONE conversations and "ttyp" for GROUP conversations. --- fbchat/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fbchat/client.py b/fbchat/client.py index ae1af9e..d99a20b 100644 --- a/fbchat/client.py +++ b/fbchat/client.py @@ -1529,7 +1529,7 @@ class Client(object): self.onInbox(unseen=m["unseen"], unread=m["unread"], recent_unread=m["recent_unread"], msg=m) # Typing - elif mtype == "ttyp": + elif mtype == "typ" or mtype == "ttyp": author_id = str(m.get("from")) thread_id = str(m.get("thread_fbid")) if thread_id == self.uid: