Skip to content

Commit

Permalink
Pyrofork: Move Web Page Preview caption to Message.text
Browse files Browse the repository at this point in the history
Signed-off-by: wulan17 <[email protected]>
  • Loading branch information
wulan17 committed Nov 10, 2023
1 parent 48a19ba commit d5028a2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pyrogram/types/messages_and_media/message.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit d5028a2

Please sign in to comment.