diff --git a/scratchclient/Message.py b/scratchclient/Message.py new file mode 100644 index 0000000..2b74e5a --- /dev/null +++ b/scratchclient/Message.py @@ -0,0 +1,5 @@ +class Message: + def __init__(self, data): + data["created_timestamp"] = data.pop("datetime_created") + data["actor"] = data.pop("actor_username") + self.__dict__.update(data)