From ed52a260644b0b1bae7670ce16069ca5a2f1fd57 Mon Sep 17 00:00:00 2001 From: Lucas Yuji Suguinoshita Aciole Date: Tue, 27 Feb 2018 00:47:02 -0300 Subject: [PATCH] Fix syntax error on Python3 In Python3, you're unable to send named parameters after **kwargs --- telethon/telegram_client.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/telethon/telegram_client.py b/telethon/telegram_client.py index 158855ad..734481ce 100644 --- a/telethon/telegram_client.py +++ b/telethon/telegram_client.py @@ -1281,7 +1281,8 @@ class TelegramClient(TelegramBareClient): def send_voice_note(self, *args, **kwargs): """Wrapper method around .send_file() with is_voice_note=True""" - return self.send_file(*args, **kwargs, is_voice_note=True) + kwargs["is_voice_note"] = True + return self.send_file(*args, **kwargs) def _send_album(self, entity, files, caption=None, progress_callback=None, reply_to=None):