Fix forward copies having "None" as caption in case of no caption at all

This commit is contained in:
Dan 2019-07-29 12:16:00 +02:00
parent 8cdcf90b10
commit d875298937

View File

@ -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,