mirror of
https://github.com/gryf/slack-backup.git
synced 2025-12-17 19:40:21 +01:00
Added Messages object and started Reactions object
This commit is contained in:
@@ -105,3 +105,19 @@ class User(BaseObject):
|
|||||||
self.tz_offset = data_dict.get("tz_offset", "")
|
self.tz_offset = data_dict.get("tz_offset", "")
|
||||||
|
|
||||||
self.profile = UserProfile(data_dict.get("profile"))
|
self.profile = UserProfile(data_dict.get("profile"))
|
||||||
|
|
||||||
|
class Reactions(object):
|
||||||
|
def __init__(self, data_dict=None):
|
||||||
|
data_dict = data_dict or {}
|
||||||
|
|
||||||
|
|
||||||
|
class Messages(object):
|
||||||
|
def __init__(self, data_dict=None):
|
||||||
|
data_dict = data_dict or {}
|
||||||
|
|
||||||
|
self.ts = data_dict.get('ts', '')
|
||||||
|
self.user_id = data_dict.get('user', '')
|
||||||
|
self.type = data_dict.get('type', '')
|
||||||
|
self.text = data_dict.get('text', '')
|
||||||
|
self.reactions = Reactions(data_dict.get('reactions', ''))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user