Turn your Telegram bot into a smart assistant that answers both text and voice messages. It is designed for customer support and community replies where fast answers and simple setup matter.
Incoming messages are captured from Telegram and checked for type. If the message is a voice note, the file is downloaded and converted to text using OpenAI. Text and voice transcripts are merged into a single prompt and sent to an AI Agent powered by a GPT model. The AI remembers recent context for each chat so replies make sense over several messages. A typing indicator is sent to show progress. The reply is cleaned to avoid Telegram formatting issues and then delivered to the user. If someone sends an unsupported command, a friendly error message is sent instead.
You only need a Telegram bot token and an OpenAI API key. Expect faster first responses and the ability to handle more chats without extra staff. It works well for FAQs, product info, basic troubleshooting, appointment details, and group moderation support.