From 41729cbdda3fe03496217d82b9a6ea0a37884354 Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Thu, 21 Mar 2019 14:08:09 +0100 Subject: [PATCH] Fix argument not passed with name --- pyrogram/client/types/messages_and_media/message.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyrogram/client/types/messages_and_media/message.py b/pyrogram/client/types/messages_and_media/message.py index 4ead0d30..08e20975 100644 --- a/pyrogram/client/types/messages_and_media/message.py +++ b/pyrogram/client/types/messages_and_media/message.py @@ -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: