From e8fbaefa72f50521d784e58be0370fef32e79f2e Mon Sep 17 00:00:00 2001 From: Lord Anton Hvornum Date: Thu, 11 May 2017 21:23:18 +0200 Subject: [PATCH] There's no such thing as 'unicode' in Py3 --- fbchat/client.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fbchat/client.py b/fbchat/client.py index 6aa5793..90a8f5d 100644 --- a/fbchat/client.py +++ b/fbchat/client.py @@ -897,7 +897,8 @@ class Client(object): if type(_fbid) == int: return _fbid - if type(_fbid) in [str, unicode] and 'fbid:' in _fbid: + print(type(_fbid)) + if type(_fbid) in [str, bytes] and 'fbid:' in _fbid: return int(_fbid[5:]) user_ids = [fbidStrip(uid) for uid in user_ids]