diff --git a/telethon/telegram_client.py b/telethon/telegram_client.py index 1e418904..562a6d7e 100644 --- a/telethon/telegram_client.py +++ b/telethon/telegram_client.py @@ -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):