mirror of
https://github.com/KnugiHK/WhatsApp-Chat-Exporter.git
synced 2026-04-24 06:51:39 +00:00
Add new attributes to JSON
This commit is contained in:
@@ -211,6 +211,7 @@ class ChatStore:
|
|||||||
'their_avatar': self.their_avatar,
|
'their_avatar': self.their_avatar,
|
||||||
'their_avatar_thumb': self.their_avatar_thumb,
|
'their_avatar_thumb': self.their_avatar_thumb,
|
||||||
'status': self.status,
|
'status': self.status,
|
||||||
|
'media_base': self.media_base,
|
||||||
'messages': {id: msg.to_json() for id, msg in self._messages.items()}
|
'messages': {id: msg.to_json() for id, msg in self._messages.items()}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -342,7 +343,10 @@ class Message:
|
|||||||
'quoted_data': self.quoted_data,
|
'quoted_data': self.quoted_data,
|
||||||
'caption': self.caption,
|
'caption': self.caption,
|
||||||
'thumb': self.thumb,
|
'thumb': self.thumb,
|
||||||
'sticker': self.sticker
|
'sticker': self.sticker,
|
||||||
|
'message_type': self.message_type,
|
||||||
|
'received_timestamp': self.received_timestamp,
|
||||||
|
'read_timestamp': self.read_timestamp
|
||||||
}
|
}
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
|
|||||||
Reference in New Issue
Block a user