File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ pyrogram.messageEntity#b0700004 flags:# type:string offset:int length:int url:fl
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 ;
1212pyrogram.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 ;
13- 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 ;
13+ pyrogram.video#b0700008 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 width:int height:int duration: 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 ;
1616pyrogram.contact#b0700011 flags:# phone_number:string first_name:string last_name:flags.0? string user_id:flags.1? int = pyrogram .Contact ;
Original file line number Diff line number Diff line change @@ -381,7 +381,9 @@ def parse_message(
381381 duration = video_attributes .duration ,
382382 thumb = parse_thumb (doc .thumb ),
383383 mime_type = doc .mime_type ,
384- file_size = doc .size
384+ file_size = doc .size ,
385+ file_name = file_name ,
386+ date = doc .date
385387 )
386388 elif types .DocumentAttributeSticker in attributes :
387389 image_size_attributes = attributes [types .DocumentAttributeImageSize ]
You can’t perform that action at this time.
0 commit comments