diff --git a/pyrogram/types/messages_and_media/message.py b/pyrogram/types/messages_and_media/message.py index 2ae4762c8..6b1503937 100644 --- a/pyrogram/types/messages_and_media/message.py +++ b/pyrogram/types/messages_and_media/message.py @@ -922,22 +922,22 @@ async def _parse( sender_chat=sender_chat, text=( Str(message.message).init(entities) or None - if media is None + if media is None or web_page_preview is not None else None ), caption=( Str(message.message).init(entities) or None - if media is not None + if media is not None and web_page_preview is None else None ), entities=( entities or None - if media is None + if media is None or web_page_preview is not None else None ), caption_entities=( entities or None - if media is not None + if media is not None and web_page_preview is None else None ), author_signature=message.post_author,