mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-11 18:01:04 +00:00
Fix parsing date in Deserializable objects.
This commit is contained in:
parent
b2798e39a8
commit
33f7f0018e
4 changed files with 5 additions and 13 deletions
|
|
@ -74,10 +74,6 @@ class Message(Deserializable):
|
|||
|
||||
self.content_type = content_type
|
||||
|
||||
@classmethod
|
||||
def _parse_date(cls, unix_time):
|
||||
return datetime.datetime.fromtimestamp(unix_time)
|
||||
|
||||
@classmethod
|
||||
def de_json(cls, raw_data):
|
||||
message_id = raw_data.get('message_id')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue