Answer Telegram button taps with Gemini automatically
When someone taps one of your inline keyboard buttons, Gemini generates the right response so your bot flows feel alive without custom code.
Trigger
Callback Query Received
Triggered when a user taps an inline keyboard button attached to one of your bot's messages.
Action
Generate Content (Gemini)
Generates text content from prompts using gemini models. supports various models like gemini flash and pro with configurable temperature, token limits, and safety settings for diverse text generation tasks.
Why this helps
Building interactive bot menus that then need a backend to actually respond to each button.
- Makes inline button menus actually responsive without coding a backend
- Generates context-aware answers per button choice
- Keeps your bot experience smooth for users
Setup
Build it in a few focused steps.
- 1Connect Telegram and Gemini to Notis once in the portal.
- 2Open Automations and click New Automation, or ask Notis in plain language.
- 3Write the instruction: when a user taps an inline button, have Gemini generate the matching response.
- 4Select the Callback Query Received trigger and choose the channel for run reports.
- 5Tap a test button and confirm Gemini produces the response.
Questions about this workflow
What triggers this workflow?
The Callback Query Received event, which fires when a user taps an inline keyboard button on one of your bot messages.
Can each button lead to a different answer?
Yes. Your instruction can tell Gemini to respond based on which button was tapped.
When this happens · Trigger
Do this · Action
Supported Triggers and Actions
Notis builds workflows that link Telegram to Gemini. A trigger fires from one place; an action lands in another.
Telegram triggers
Gemini actions
New Message Received
Triggered when your bot receives a new message in a private chat, group, or supergroup. To receive every message in a group, Privacy Mode must be disabled for the bot in BotFather.
Count Tokens (Gemini)
Counts the number of tokens in text using gemini tokenization. useful for estimating costs, checking input limits, and optimizing prompts before making api calls.
New Channel Post
Triggered when a new post is published to a channel where your bot is an administrator.
Download Video (Veo)
Downloads a generated veo video to local storage. takes the video uri from a completed operation and saves it to the specified file path.
Callback Query Received
Triggered when a user taps an inline keyboard button attached to one of your bot's messages.
Embed Content (Gemini)
Generates text embeddings using gemini embedding models. converts text into numerical vectors for semantic search, similarity comparison, clustering, and classification tasks.
Message Edited
Triggered when a message in a chat your bot can see is edited by its sender.
Generate Content (Gemini)
Generates text content from prompts using gemini models. supports various models like gemini flash and pro with configurable temperature, token limits, and safety settings for diverse text generation tasks.
New Chat Member
Triggered when a new member joins a group or supergroup the bot belongs to, including when the bot itself is added.
Generate Image (Gemini 2.5 Flash)
Generates images from text prompts using gemini 2.5 flash image preview model. supports creative image generation with customizable parameters like aspect ratio, safety settings, and optional file saving.
Generate Videos (Veo)
Generates videos from text prompts using google's veo models. creates high-quality video content with customizable aspect ratios, duration, and style controls. returns operation id for tracking progress.
Get Videos Operation (Veo)
Checks the status of a veo video generation operation. use the operation name from generatevideos to track progress and get the download url when complete.
List Models (Gemini API)
Lists available gemini and veo models with their capabilities and limits. useful for discovering supported models and their features before making generation requests.
Connect any two apps with Notis in the middle.
Not just Telegram and Gemini. Any combination from 1,000+ integrations.
When this happens · Trigger
Do this · Action
Save your first hour today.
7 days free trial with 20$ free usage included.
No card. Works with personal or business Gemini.