2
0
mirror of https://github.com/pyrogram/pyrogram synced 2025-09-01 23:05:15 +00:00

Add missing await for send_audio thumbnail upload (#210)

This commit is contained in:
MBRCTV
2019-01-30 09:45:30 -05:00
committed by Dan
parent 3bc128876f
commit cc7cb27858

View File

@@ -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"),