mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-01-24 00:04:14 +03:00
Add missing parameters to TelegramClient.send_voice_note
This commit is contained in:
parent
098602ca13
commit
623c1bd7d1
|
@ -1278,13 +1278,9 @@ class TelegramClient(TelegramBareClient):
|
||||||
|
|
||||||
return msg
|
return msg
|
||||||
|
|
||||||
def send_voice_note(self, entity, file, caption=None,
|
def send_voice_note(self, *args, **kwargs):
|
||||||
progress_callback=None, reply_to=None):
|
"""Wrapper method around .send_file() with is_voice_note=True"""
|
||||||
"""Wrapper method around .send_file() with is_voice_note=()"""
|
return self.send_file(*args, **kwargs, is_voice_note=True)
|
||||||
return self.send_file(entity, file, caption,
|
|
||||||
progress_callback=progress_callback,
|
|
||||||
reply_to=reply_to,
|
|
||||||
is_voice_note=()) # empty tuple is enough
|
|
||||||
|
|
||||||
def _send_album(self, entity, files, caption=None,
|
def _send_album(self, entity, files, caption=None,
|
||||||
progress_callback=None, reply_to=None):
|
progress_callback=None, reply_to=None):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user