mirror of
https://github.com/pyrogram/pyrogram
synced 2025-09-02 07:15:23 +00:00
Add missing await for send_audio thumbnail upload (#210)
This commit is contained in:
@@ -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"),
|
||||
|
Reference in New Issue
Block a user