mirror of
https://github.com/pyrogram/pyrogram
synced 2025-09-01 06:45:39 +00:00
Fix forward copies having "None" as caption in case of no caption at all
This commit is contained in:
@@ -2620,7 +2620,7 @@ class Message(Object, Update):
|
||||
disable_notification=disable_notification
|
||||
)
|
||||
elif self.media:
|
||||
caption = self.caption.html if self.caption and not remove_caption else None
|
||||
caption = self.caption.html if self.caption and not remove_caption else ""
|
||||
|
||||
send_media = partial(
|
||||
self._client.send_cached_media,
|
||||
|
Reference in New Issue
Block a user