Generate Gemini images from Telegram button taps
When a user taps an inline keyboard button, Gemini 2.5 Flash generates an image so your bot delivers visuals on demand without any custom backend.
Trigger
Callback Query Received
Triggered when a user taps an inline keyboard button attached to one of your bot's messages.
Action
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.
Why this helps
Wanting an interactive image feature in your bot but not having the engineering time to build one.
- Adds an on-demand image feature to your bot with no code
- Lets each button map to a different image prompt
- Delivers a polished interactive experience 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 a button, have Gemini generate the matching image.
- 4Select the Callback Query Received trigger and the channel for run reports.
- 5Tap a test button and confirm Gemini returns an image.
Questions about this workflow
Can different buttons make different images?
Yes. Your instruction can tie each button choice to a distinct image prompt.
What event drives this?
The Callback Query Received event, which fires when a user taps an inline keyboard button.
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
Recurring trigger
Notis starts this workflow on a schedule, such as daily, weekly, or during business hours.
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.
Webhook trigger
Notis starts this workflow when an external tool or custom backend sends an HTTP request.
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.
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.
Embed Content (Gemini)
Generates text embeddings using gemini embedding models. converts text into numerical vectors for semantic search, similarity comparison, clustering, and classification tasks.
New Channel Post
Triggered when a new post is published to a channel where your bot is an administrator.
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.
Callback Query Received
Triggered when a user taps an inline keyboard button attached to one of your bot's messages.
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.
Message Edited
Triggered when a message in a chat your bot can see is edited by its sender.
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.
New Chat Member
Triggered when a new member joins a group or supergroup the bot belongs to, including when the bot itself is added.
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.
Telegram and Gemini, or any other combination from 1,000+ integrations.
When this happens · Trigger
Do this · Action
Save your first hour today.
7-day trial of any paid plan, with 20$ of usage included.
No card. Works with personal or business Gemini.