mirror of
https://github.com/gryf/slack-backup.git
synced 2026-10-06 18:30:33 +02:00
Added Messages object and started Reactions object
This commit is contained in:
1 parent
15568ef593
commit
1d90ee6d9f
1 file changed
+16
@@ -105,3 +105,19 @@ class User(BaseObject):
|
||||
self.tz_offset = data_dict.get("tz_offset", "")
|
||||
|
||||
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