mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-03-24 03:44:25 +03:00
Actually fix message.document for webpages (57049d follow-up)
This commit is contained in:
parent
67183ff9e8
commit
6e9d799103
|
@ -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):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user