mirror of
https://github.com/TeamPGM/pyrogram.git
synced 2024-11-16 12:51:18 +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")
|
||||
|
||||
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 New Issue
Block a user