cd /news/artificial-intelligence/building-a-telegram-ai-assistant-wit… · home topics artificial-intelligence article
[ARTICLE · art-101120] src=dev.to ↗ pub= topic=artificial-intelligence verified=true sentiment=· neutral

Building a Telegram AI assistant with a multi-LLM fallback chain

A developer with a background in banking, food production, and construction built Jimi, a personal AI assistant for Telegram, using a FastAPI backend decoupled from the messaging layer. The assistant uses OpenAI's gpt-4o-mini as its primary brain with a fallback chain to Gemini and DeepSeek to handle outages. The developer found that voice interactions are 20-25x more expensive per interaction than text, primarily due to TTS, which influenced plans to make voice a premium feature.

read1 min views1 publishedAug 18, 2026

I'm not a professional developer — my background is in banking, food production, and now construction — but I've spent the last few weeks building Jimi, a personal AI assistant that lives inside Telegram. Wanted to share some of the architecture decisions, since a few things surprised me along the way.

Telegram is just the client. All the actual logic — intent parsing, memory, tool calls, voice — lives in a FastAPI backend, completely decoupled from the messaging layer. The idea was to avoid locking myself into Telegram forever; if I ever want a web client or a different messaging platform, the core doesn't need to change.

Jimi's primary brain is OpenAI (gpt-4o-mini for cost reasons), but I built a fallback chain to Gemini and DeepSeek in case of rate limits or outages. This turned out to be more important than I expected — even a short outage on one provider used to mean the whole assistant went silent. Now it just quietly falls back.

I assumed text tokens would be my main cost driver. They're not even close. Once I actually modeled the unit economics, voice (transcription + TTS) turned out to be roughly 20-25x more expensive per interaction than text — mostly because of TTS on every response, not the transcription itself. That completely changed my monetization plan: text stays free, voice becomes the premium feature.

Working on persistent memory (so Jimi actually remembers preferences, not just events) and eventually expanding beyond chat into things like calendar and email actions.

Curious if others here have dealt with similar cost surprises when adding voice/audio to an LLM-based product — would love to hear how you approached it.

── more in #artificial-intelligence 4 stories · sorted by recency
── more on @jimi 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/building-a-telegram-…] indexed:0 read:1min 2026-08-18 ·