Fix syntax error on Python3

In Python3, you're unable to send named parameters after **kwargs
This commit is contained in:
Lucas Yuji Suguinoshita Aciole 2018-02-27 00:47:02 -03:00 committed by GitHub
parent 8d1b6629cb
commit ed52a26064
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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