From e203a5500f65c52c46c551fea5232092a888f9c5 Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Tue, 18 Dec 2018 10:07:40 +0100 Subject: [PATCH] Don't treat messages containing web page previews as media --- pyrogram/client/types/messages_and_media/message.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pyrogram/client/types/messages_and_media/message.py b/pyrogram/client/types/messages_and_media/message.py index c0c7edd1..00567491 100644 --- a/pyrogram/client/types/messages_and_media/message.py +++ b/pyrogram/client/types/messages_and_media/message.py @@ -447,6 +447,7 @@ class Message(PyrogramType): document = pyrogram.Document.parse(client, doc, file_name) elif isinstance(media, types.MessageMediaWebPage): web_page = True + media = None else: media = None