mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-29 13:27:47 +00:00
Fix argument not passed with name
This commit is contained in:
parent
159090483f
commit
41729cbdda
@ -2682,7 +2682,7 @@ class Message(PyrogramType, Update):
|
|||||||
raise ValueError("Unknown media type")
|
raise ValueError("Unknown media type")
|
||||||
|
|
||||||
if self.sticker or self.video_note: # Sticker and VideoNote should have no caption
|
if self.sticker or self.video_note: # Sticker and VideoNote should have no caption
|
||||||
return send_media(file_id)
|
return send_media(file_id=file_id)
|
||||||
else:
|
else:
|
||||||
return send_media(file_id=file_id, caption=caption, parse_mode=ParseMode.HTML)
|
return send_media(file_id=file_id, caption=caption, parse_mode=ParseMode.HTML)
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user