mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-01-23 15:54:12 +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
|
||||
|
||||
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):
|
||||
|
|
Loading…
Reference in New Issue
Block a user