mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-29 13:27:47 +00:00
Message: media = None if WebPage is empty
This commit is contained in:
parent
f7bfd5597e
commit
b4a8763452
@ -574,6 +574,8 @@ class Message(Object, Update):
|
||||
elif isinstance(media, types.MessageMediaWebPage):
|
||||
if isinstance(media.webpage, types.WebPage):
|
||||
web_page = pyrogram.WebPage._parse(client, media.webpage)
|
||||
else:
|
||||
media = None
|
||||
|
||||
elif isinstance(media, types.MessageMediaPoll):
|
||||
poll = pyrogram.Poll._parse(client, media)
|
||||
|
Loading…
x
Reference in New Issue
Block a user