mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-13 10:26:53 +00:00
Fix date parser.
This commit is contained in:
parent
190d68b1b6
commit
42f15ef906
1 changed files with 2 additions and 1 deletions
|
|
@ -37,7 +37,8 @@ class ChatMember(Deserializable):
|
|||
|
||||
@classmethod
|
||||
def _parse_date(cls, unix_time):
|
||||
return datetime.datetime.fromtimestamp(unix_time)
|
||||
if unix_time is not None:
|
||||
return datetime.datetime.fromtimestamp(unix_time)
|
||||
|
||||
@classmethod
|
||||
def de_json(cls, raw_data):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue