mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-03 22:14:50 +00:00
Pyrofork: Move Web Page Preview caption to Message.text
Signed-off-by: wulan17 <wulan17@nusantararom.org>
This commit is contained in:
parent
542bd41608
commit
1292805045
1 changed files with 4 additions and 4 deletions
|
|
@ -922,22 +922,22 @@ class Message(Object, Update):
|
|||
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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue