Pyrofork: fix Message.copy text when web_page_preview is not None

Signed-off-by: wulan17 <wulan17@nusantararom.org>
This commit is contained in:
wulan17 2024-01-04 19:43:39 +07:00
parent f1b4d1ca49
commit c3a67b7665
No known key found for this signature in database
GPG key ID: 318CD6CD3A6AC0A5

View file

@ -4159,7 +4159,7 @@ class Message(Object, Update):
return await self._client.send_web_page(
chat_id,
url=self.web_page_preview.webpage.url,
text=self.caption,
text=self.text,
entities=self.entities,
parse_mode=enums.ParseMode.DISABLED,
large_media=self.web_page_preview.force_large_media,