Update to layer 100

This commit is contained in:
Lonami Exo
2019-05-30 13:23:47 +02:00
parent 9f72bd8ca3
commit e4158acd08
4 changed files with 43 additions and 13 deletions

View File

@@ -155,7 +155,7 @@ class TLArg:
# treated as a "date" object. Note that this is not a valid
# Telegram object, but it's easier to work with
if self.type == 'int' and (
re.search(r'(\b|_)(date|until|since)(\b|_)', name) or
re.search(r'(\b|_)([dr]ate|until|since)(\b|_)', name) or
name in ('expires', 'expires_at', 'was_online')):
self.type = 'date'