mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-22 17:36:34 +03:00
Fix message.document for webpages
This commit is contained in:
parent
d5faf5e8aa
commit
57049de23a
|
@ -430,7 +430,7 @@ class Message(ChatGetter, SenderGetter, TLObject, abc.ABC):
|
||||||
return self.media.document
|
return self.media.document
|
||||||
else:
|
else:
|
||||||
web = self.web_preview
|
web = self.web_preview
|
||||||
if web and isinstance(web.photo, types.Document):
|
if web and isinstance(web.document, types.Document):
|
||||||
return web.photo
|
return web.photo
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
|
Loading…
Reference in New Issue
Block a user