Fix named arguments after kwargs (#646)

In Python3, you're unable to send named parameters after **kwargs

* Use single quotes
This commit is contained in:
Lucas Yuji Suguinoshita Aciole 2018-02-27 06:05:27 -03:00 committed by Lonami
parent 8d1b6629cb
commit 29f10f2771

View File

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