mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-02-16 19:41:07 +03:00
Fix named arguments after kwargs (#646)
In Python3, you're unable to send named parameters after **kwargs * Use single quotes
This commit is contained in:
parent
8d1b6629cb
commit
29f10f2771
|
@ -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