diff --git a/telethon_generator/parsers/tlobject/tlarg.py b/telethon_generator/parsers/tlobject/tlarg.py index e436d9a2..d34acf25 100644 --- a/telethon_generator/parsers/tlobject/tlarg.py +++ b/telethon_generator/parsers/tlobject/tlarg.py @@ -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|_)(date|until|since)(\b|_)', name) or name in ('expires', 'expires_at', 'was_online')): self.type = 'date'