mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-30 22:05:28 +00:00
Message: media = None if WebPage is empty
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user