Update client.py
This commit is contained in:
@@ -65,7 +65,7 @@ class Client(object):
|
|||||||
|
|
||||||
self.threads = []
|
self.threads = []
|
||||||
self.threads = []
|
self.threads = []
|
||||||
#self.data = data
|
|
||||||
|
|
||||||
def _console(self, msg):
|
def _console(self, msg):
|
||||||
if self.debug: print(msg)
|
if self.debug: print(msg)
|
||||||
@@ -155,7 +155,7 @@ class Client(object):
|
|||||||
for entry in j['payload']['entries']:
|
for entry in j['payload']['entries']:
|
||||||
if entry['type'] == 'user':
|
if entry['type'] == 'user':
|
||||||
users.append(User(entry))
|
users.append(User(entry))
|
||||||
return users
|
return users # have bug TypeError: __repr__ returned non-string (type bytes)
|
||||||
|
|
||||||
def sendMessage(self, message, thread_id):
|
def sendMessage(self, message, thread_id):
|
||||||
timestamp = now()
|
timestamp = now()
|
||||||
|
Reference in New Issue
Block a user