mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-30 22:05:28 +00:00
Fix copied messages reporting "None" in case of empty captions
This commit is contained in:
@@ -2920,7 +2920,7 @@ class Message(Object, Update):
|
||||
return await send_media(file_id=file_id)
|
||||
else:
|
||||
if caption is None:
|
||||
caption = self.caption
|
||||
caption = self.caption or ""
|
||||
caption_entities = self.caption_entities
|
||||
|
||||
return await send_media(
|
||||
|
Reference in New Issue
Block a user