mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-08 16:04: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:
|
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"),
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue