Skip to content

Instantly share code, notes, and snippets.

@dooslave
dooslave / telegram-voice-stt-prompt.md
Created February 19, 2026 21:13
Telegram bot voice message transcription — implementation prompt

Telegram Bot Voice Message Transcription — Implementation Prompt

Goal

Add voice message support to an existing Python Telegram bot. When a user sends a voice message, transcribe it to text and process it as if the user typed it.

Recommended Approach: OpenAI gpt-4o-mini-transcribe

Best balance of cost, accuracy, and simplicity. No audio conversion needed — Telegram's .ogg files are accepted directly.

  • Cost: $0.003/min (~$0.0015 per 30s message)