Fix argument not passed with name

This commit is contained in:
Dan 2019-03-21 14:08:09 +01:00
parent 159090483f
commit 41729cbdda

View File

@ -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: