New read_by attribute in Message

This commit is contained in:
Kacper Ziubryniewicz
2018-09-24 20:32:04 +02:00
committed by GitHub
parent 0ae213c240
commit 576e0949e0

View File

@@ -180,6 +180,8 @@ class Message(object):
timestamp = None
#: Whether the message is read
is_read = None
#: A list of pepole IDs who read the message, works only with :func:`fbchat.Client.fetchThreadMessages`
read_by = None
#: A dict with user's IDs as keys, and their :class:`MessageReaction` as values
reactions = None
#: The actual message
@@ -201,6 +203,7 @@ class Message(object):
attachments = []
self.attachments = attachments
self.reactions = {}
self.read_by = []
def __repr__(self):
return self.__unicode__()