diff --git a/compiler/api/source/pyrogram.tl b/compiler/api/source/pyrogram.tl index dd5c290a..dccaa7f0 100644 --- a/compiler/api/source/pyrogram.tl +++ b/compiler/api/source/pyrogram.tl @@ -9,7 +9,7 @@ pyrogram.message#b0700003 flags:# message_id:int from_user:flags.0?User date:int pyrogram.messageEntity#b0700004 flags:# type:string offset:int length:int url:flags.0?string user:flags.1?User = pyrogram.MessageEntity; pyrogram.photoSize#b0700005 flags:# file_id:string width:int height:int file_size:flags.0?int date:flags.1?int = pyrogram.PhotoSize; pyrogram.audio#b0700006 flags:# file_id:string thumb:flags.0?PhotoSize file_name:flags.1?string mime_type:flags.2?string file_size:flags.3?int date:flags.4?int duration:int performer:flags.5?string title:flags.6?string = pyrogram.Audio; -pyrogram.document#b0700007 flags:# file_id:string thumb:flags.0?PhotoSize file_name:flags.1?string mime_type:flags.2?string file_size:flags.3?int = pyrogram.Document; +pyrogram.document#b0700007 flags:# file_id:string thumb:flags.0?PhotoSize file_name:flags.1?string mime_type:flags.2?string file_size:flags.3?int date:flags.4?int = pyrogram.Document; pyrogram.video#b0700008 flags:# file_id:string width:int height:int duration:int thumb:flags.0?PhotoSize mime_type:flags.1?string file_size:flags.2?int = pyrogram.Video; pyrogram.voice#b0700009 flags:# file_id:string duration:int mime_type:flags.0?string file_size:flags.1?int = pyrogram.Voice; pyrogram.videoNote#b0700010 flags:# file_id:string length:int duration:int thumb:flags.0?PhotoSize file_size:flags.1?int = pyrogram.VideoNote; diff --git a/pyrogram/client/message_parser.py b/pyrogram/client/message_parser.py index 82031d6b..9cfdcd16 100644 --- a/pyrogram/client/message_parser.py +++ b/pyrogram/client/message_parser.py @@ -343,7 +343,8 @@ def parse_message( thumb=parse_thumb(doc.thumb), file_name=file_name, mime_type=doc.mime_type, - file_size=doc.size + file_size=doc.size, + date=doc.date ) elif types.DocumentAttributeVideo in attributes: video_attributes = attributes[types.DocumentAttributeVideo] @@ -415,7 +416,8 @@ def parse_message( thumb=parse_thumb(doc.thumb), file_name=file_name, mime_type=doc.mime_type, - file_size=doc.size + file_size=doc.size, + date=doc.date ) else: media = None