diff --git a/pyrogram/client/utils.py b/pyrogram/client/utils.py index 196e795b..1f24373d 100644 --- a/pyrogram/client/utils.py +++ b/pyrogram/client/utils.py @@ -139,6 +139,8 @@ def parse_message(message: types.Message, users: dict, chats: dict): location = None contact = None audio = None + video = None + video_note = None media = message.media @@ -221,6 +223,43 @@ def parse_message(message: types.Message, users: dict, chats: dict): mime_type=doc.mime_type, file_size=doc.size ) + elif types.DocumentAttributeVideo in attributes: + video_attributes = attributes[types.DocumentAttributeVideo] + + if video_attributes.round_message: + video_note = pyrogram.VideoNote( + file_id=encode( + pack( + "