mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-06-19 03:26:39 +00:00
Fix date_* attributes not being of type datetime
This commit is contained in:
parent
4e783728f9
commit
013525797a
@ -155,7 +155,7 @@ class TLArg:
|
|||||||
# treated as a "date" object. Note that this is not a valid
|
# treated as a "date" object. Note that this is not a valid
|
||||||
# Telegram object, but it's easier to work with
|
# Telegram object, but it's easier to work with
|
||||||
if self.type == 'int' and (
|
if self.type == 'int' and (
|
||||||
re.search(r'(\b|_)(date|until|since)\b', name) or
|
re.search(r'(\b|_)(date|until|since)(\b|_)', name) or
|
||||||
name in ('expires', 'expires_at', 'was_online')):
|
name in ('expires', 'expires_at', 'was_online')):
|
||||||
self.type = 'date'
|
self.type = 'date'
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user