mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-05 04:30:22 +03:00
Fix syntax error on Python3
In Python3, you're unable to send named parameters after **kwargs
This commit is contained in:
parent
8d1b6629cb
commit
ed52a26064
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue
Block a user