There's a lot of fields in the actual JSON that aren't accessible from the Message object instance. I decided to keep it in the _data variable.
Regarding the message timestamp:
Not sure if there's a need to use time.time(), but I kept it in case there would be no timestamp in the data.
Feel free to remove it by keeping it just like that:
There's a lot of fields in the actual JSON that aren't accessible from the Message object instance. I decided to keep it in the
_data
variable.Regarding the message timestamp:
Not sure if there's a need to use
time.time()
, but I kept it in case there would be no timestamp in the data.Feel free to remove it by keeping it just like that:
Though it will crash if there will be no
timestamp
key.