mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-03-13 07:55:48 +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:
|
||||
web = self.web_preview
|
||||
if web and isinstance(web.document, types.Document):
|
||||
return web.photo
|
||||
return web.document
|
||||
|
||||
@property
|
||||
def web_preview(self):
|
||||
|
|
Loading…
Reference in New Issue
Block a user