Skip to content

Commit d875298

Browse files
committed
Fix forward copies having "None" as caption in case of no caption at all
1 parent 8cdcf90 commit d875298

File tree

1 file changed

+1
-1
lines changed
  • pyrogram/client/types/messages_and_media

1 file changed

+1
-1
lines changed

pyrogram/client/types/messages_and_media/message.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2620,7 +2620,7 @@ def forward(
26202620
disable_notification=disable_notification
26212621
)
26222622
elif self.media:
2623-
caption = self.caption.html if self.caption and not remove_caption else None
2623+
caption = self.caption.html if self.caption and not remove_caption else ""
26242624

26252625
send_media = partial(
26262626
self._client.send_cached_media,

0 commit comments

Comments
 (0)