Actually fix message.document for webpages (57049d follow-up)

This commit is contained in:
Lonami Exo 2019-09-08 11:06:43 +02:00
parent 67183ff9e8
commit 6e9d799103

View File

@ -442,7 +442,7 @@ class Message(ChatGetter, SenderGetter, TLObject, abc.ABC):
else: else:
web = self.web_preview web = self.web_preview
if web and isinstance(web.document, types.Document): if web and isinstance(web.document, types.Document):
return web.photo return web.document
@property @property
def web_preview(self): def web_preview(self):