mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-07 07:24:51 +00:00
Fix copied messages reporting "None" in case of empty captions
This commit is contained in:
parent
76b9f97681
commit
d2023c39ae
1 changed files with 1 additions and 1 deletions
|
|
@ -2920,7 +2920,7 @@ class Message(Object, Update):
|
||||||
return await send_media(file_id=file_id)
|
return await send_media(file_id=file_id)
|
||||||
else:
|
else:
|
||||||
if caption is None:
|
if caption is None:
|
||||||
caption = self.caption
|
caption = self.caption or ""
|
||||||
caption_entities = self.caption_entities
|
caption_entities = self.caption_entities
|
||||||
|
|
||||||
return await send_media(
|
return await send_media(
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue