File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ pyrogram.message#b0700003 flags:# message_id:int from_user:flags.0?User date:int
99pyrogram.messageEntity#b0700004 flags:# type:string offset:int length:int url:flags.0? string user:flags.1? User = pyrogram .MessageEntity ;
1010pyrogram.photoSize#b0700005 flags:# file_id:string width:int height:int file_size:flags.0? int date:flags.1? int = pyrogram .PhotoSize ;
1111pyrogram.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 ;
12- 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 ;
12+ 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 ;
1313pyrogram.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 ;
1414pyrogram.voice#b0700009 flags:# file_id:string duration:int mime_type:flags.0? string file_size:flags.1? int = pyrogram .Voice ;
1515pyrogram.videoNote#b0700010 flags:# file_id:string length:int duration:int thumb:flags.0? PhotoSize file_size:flags.1? int = pyrogram .VideoNote ;
Original file line number Diff line number Diff line change @@ -343,7 +343,8 @@ def parse_message(
343343 thumb = parse_thumb (doc .thumb ),
344344 file_name = file_name ,
345345 mime_type = doc .mime_type ,
346- file_size = doc .size
346+ file_size = doc .size ,
347+ date = doc .date
347348 )
348349 elif types .DocumentAttributeVideo in attributes :
349350 video_attributes = attributes [types .DocumentAttributeVideo ]
@@ -415,7 +416,8 @@ def parse_message(
415416 thumb = parse_thumb (doc .thumb ),
416417 file_name = file_name ,
417418 mime_type = doc .mime_type ,
418- file_size = doc .size
419+ file_size = doc .size ,
420+ date = doc .date
419421 )
420422 else :
421423 media = None
You can’t perform that action at this time.
0 commit comments