Build a Voice-Enabled Telegram Bot with the Gemini Interactions API

Google for Developers · Beginner ·🧠 Large Language Models ·3mo ago

Key Takeaways

Builds a voice-enabled Telegram bot using Gemini Interactions API and Antigravity

Original Description

Thor from Google DeepMind walks through how to build a Telegram bot that receives voice messages, reasons over them with Gemini 3.1 Flash, and responds with generated speech in a custom accent, all built with Antigravity and deployed to Cloud Run without writing the code manually. What's covered: Setting up a Telegram bot with BotFather, using Gemini Flash for reasoning and Gemini TTS for voice responses, handling OGG audio from Telegram and converting output with FFmpeg, building agent, transcription, and translation modes, deploying to Google Cloud Run with Docker and Secret Manager, and using the Gemini Interactions API coding skill to accelerate the build. Grab your Gemini API key at Google AI Studio and your bot token from BotFather on Telegram to get started. Full code and tutorial linked below. Resources: Find the tutorial → https://goo.gle/4cdOpJa Find the code → https://goo.gle/3Q8prCo What are you building with Gemini? Drop it in the comments. Chapters 0:00 - Intro and Telegram voice bot demo 1:17 - Technical Setup and Prerequisites 1:48 - Deploying to Google Cloud Run 2:27 - AI-Assisted Coding with Antigravity 4:08 - Using Gemini 3.1 Flash Lite and TTS 4:51 - Bot Modes: Agent, Transcription, and Translation 6:32 - Voice Message Flow and Audio Conversion 8:31 - GitHub Repo and Next Steps Subscribe to Google for Developers → https://goo.gle/developers Speaker: Thor Schaeff Products Mentioned: Google AI, Gemini
Watch on YouTube ↗ (saves to browser)
Sign in to unlock AI tutor explanation · ⚡30

Related Reads

📰
Qwen2 is here. It’s time to re-evaluate your default model choices.
Explore Qwen2, Alibaba Cloud's new open-source models, as a high-performing alternative to traditional choices for multilingual and long-context tasks
Dev.to · albe_sf
📰
The Brain and Machines: What It Really Means to Say AI Is “Inspired by the Brain”
Discover the true meaning of AI being inspired by the brain and its implications
Medium · AI
📰
The Brain and Machines: What It Really Means to Say AI Is “Inspired by the Brain”
Discover what it means for AI to be inspired by the brain and the limitations of this concept
Medium · Machine Learning
📰
How to Use Chat GPT to Make Money Online (Complete Beginner’s Guide for 2026)
Learn how to leverage ChatGPT to generate online income with this beginner's guide
Medium · AI

Chapters (8)

Intro and Telegram voice bot demo
1:17 Technical Setup and Prerequisites
1:48 Deploying to Google Cloud Run
2:27 AI-Assisted Coding with Antigravity
4:08 Using Gemini 3.1 Flash Lite and TTS
4:51 Bot Modes: Agent, Transcription, and Translation
6:32 Voice Message Flow and Audio Conversion
8:31 GitHub Repo and Next Steps
Up next
5 Levels of AI Agents - From Simple LLM Calls to Multi-Agent Systems
Dave Ebbelaar (LLM Eng)
Watch →