Skip to content

Commit 42c5a9d

Browse files
fix: write voice.ogg to /tmp file
1 parent f9ed82b commit 42c5a9d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • src/telegram_agent_aws/infrastructure/telegram

src/telegram_agent_aws/infrastructure/telegram/handlers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ async def handle_text(update: Update, context: ContextTypes.DEFAULT_TYPE):
2525
async def handle_voice(update: Update, context: ContextTypes.DEFAULT_TYPE):
2626
voice = update.message.voice
2727
file = await context.bot.get_file(voice.file_id)
28-
file_path = "voice.ogg"
28+
file_path = "/tmp/voice.ogg"
2929
await file.download_to_drive(file_path)
3030

3131
with open(file_path, "rb") as audio_file:

0 commit comments

Comments
 (0)