mirror of
https://github.com/pyrogram/pyrogram
synced 2025-09-04 16:25:08 +00:00
Add missing await for send_audio thumbnail upload (#210)
This commit is contained in:
@@ -130,7 +130,7 @@ class SendAudio(BaseClient):
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
if os.path.exists(audio):
|
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)
|
file = await self.save_file(audio, progress=progress, progress_args=progress_args)
|
||||||
media = types.InputMediaUploadedDocument(
|
media = types.InputMediaUploadedDocument(
|
||||||
mime_type=mimetypes.types_map.get("." + audio.split(".")[-1], "audio/mpeg"),
|
mime_type=mimetypes.types_map.get("." + audio.split(".")[-1], "audio/mpeg"),
|
||||||
|
Reference in New Issue
Block a user