Add missing parameters to TelegramClient.send_voice_note

This commit is contained in:
Lonami Exo 2018-02-25 20:34:40 +01:00
parent 098602ca13
commit 623c1bd7d1

View File

@ -1278,13 +1278,9 @@ class TelegramClient(TelegramBareClient):
return msg
def send_voice_note(self, entity, file, caption=None,
progress_callback=None, reply_to=None):
"""Wrapper method around .send_file() with is_voice_note=()"""
return self.send_file(entity, file, caption,
progress_callback=progress_callback,
reply_to=reply_to,
is_voice_note=()) # empty tuple is enough
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)
def _send_album(self, entity, files, caption=None,
progress_callback=None, reply_to=None):