mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-04 14:24:51 +00:00
Don't treat messages containing web page previews as media
This commit is contained in:
parent
914dfca574
commit
e203a5500f
1 changed files with 1 additions and 0 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue