Spaces:
Running
Running
UPDATE
Browse files
app.py
CHANGED
@@ -169,7 +169,7 @@ async def audio_handler(event):
|
|
169 |
file_path = await client.download_media(event.message, f"downloads/{event.sender.id}_audio.mp3")
|
170 |
return await msg.edit("`Downloaded successfully...`")
|
171 |
elif event.is_group and event.text.startswith("/edit") and reply:
|
172 |
-
if reply.media and reply.
|
173 |
msg = await event.reply("`Downloading...`")
|
174 |
file_path = await reply.download_media(f"downloads/{event.sender.id}_audio.mp3")
|
175 |
# try:
|
|
|
169 |
file_path = await client.download_media(event.message, f"downloads/{event.sender.id}_audio.mp3")
|
170 |
return await msg.edit("`Downloaded successfully...`")
|
171 |
elif event.is_group and event.text.startswith("/edit") and reply:
|
172 |
+
if reply.media and reply.media.document.mime_type.startswith('audio'):
|
173 |
msg = await event.reply("`Downloading...`")
|
174 |
file_path = await reply.download_media(f"downloads/{event.sender.id}_audio.mp3")
|
175 |
# try:
|