Spaces:
Running
Running
MineisZarox
commited on
Commit
·
16808f9
1
Parent(s):
aded39e
UPDATE
Browse files
app.py
CHANGED
@@ -110,7 +110,7 @@ async def send_handler(event):
|
|
110 |
# output_file = await Fusion.saveSound(states[user_id]["audio"], output_file_name)
|
111 |
# await event.reply(file=output_file)
|
112 |
|
113 |
-
await client.send_file(event.chat_id, file=states[user_id]["audio"], attributes=types.DocumentAttributeFilename(file_name="Audio.mp3"))
|
114 |
|
115 |
# Clean up - remove the user's state and the saved audio file
|
116 |
del states[user_id]
|
|
|
110 |
# output_file = await Fusion.saveSound(states[user_id]["audio"], output_file_name)
|
111 |
# await event.reply(file=output_file)
|
112 |
|
113 |
+
await client.send_file(event.chat_id, file=states[user_id]["audio"], attributes=[types.DocumentAttributeFilename(file_name="Audio.mp3")])
|
114 |
|
115 |
# Clean up - remove the user's state and the saved audio file
|
116 |
del states[user_id]
|