From 29f10f277179f89082e0e9bd43bb942b7d04da9e Mon Sep 17 00:00:00 2001 From: Lucas Yuji Suguinoshita Aciole Date: Tue, 27 Feb 2018 06:05:27 -0300 Subject: [PATCH] Fix named arguments after kwargs (#646) In Python3, you're unable to send named parameters after **kwargs * Use single quotes --- 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..a8270aaf 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):