mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2025-12-29 20:14:51 +00:00
Fix argument not passed with name
This commit is contained in:
parent
159090483f
commit
41729cbdda
1 changed files with 1 additions and 1 deletions
|
|
@ -2682,7 +2682,7 @@ class Message(PyrogramType, Update):
|
|||
raise ValueError("Unknown media type")
|
||||
|
||||
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:
|
||||
return send_media(file_id=file_id, caption=caption, parse_mode=ParseMode.HTML)
|
||||
else:
|
||||
|
|
|
|||
Loading…
Reference in a new issue