mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2025-12-30 20:34:51 +00:00
Add missing await for send_audio thumbnail upload (#210)
This commit is contained in:
parent
3bc128876f
commit
cc7cb27858
1 changed files with 1 additions and 1 deletions
|
|
@ -130,7 +130,7 @@ class SendAudio(BaseClient):
|
|||
|
||||
try:
|
||||
if os.path.exists(audio):
|
||||
thumb = None if thumb is None else self.save_file(thumb)
|
||||
thumb = None if thumb is None else await self.save_file(thumb)
|
||||
file = await self.save_file(audio, progress=progress, progress_args=progress_args)
|
||||
media = types.InputMediaUploadedDocument(
|
||||
mime_type=mimetypes.types_map.get("." + audio.split(".")[-1], "audio/mpeg"),
|
||||
|
|
|
|||
Loading…
Reference in a new issue