Marketing & Advertisingbeginner
November 12, 2025
6 min read
25 minutes
Build an AI-Powered Telegram Image Editor Bot with n8n
Transform photos instantly by chatting with a Telegram bot. This n8n workflow uses AI to edit images with simple text prompts—no apps or software needed.
By Mahedi Hasan Nadvee

Ever wished you could edit images just by sending them to a chat bot with a quick description of what you want? No downloading apps, no complicated software, just you, your phone, and a Telegram conversation that magically transforms your photos.
The problem is real. Traditional image editing requires downloading bulky software, learning complex tools, or paying for expensive subscriptions. For quick edits on the go, these solutions feel like overkill. What if you could simply message a bot, send an image with a caption like "make this photo vintage" or "add a sunset background," and get your edited image back in seconds?
That's exactly what this n8n workflow delivers. By combining Telegram's messaging platform with Google's Nano Banana AI image editing model, you get a personal image editor that lives right in your pocket. No apps to install, no learning curve, just instant AI-powered image transformations.
What You'll Need to Get Started
Before diving into the workflow, let's gather everything you need. Think of this as your pre-flight checklist before takeoff.
Prerequisites
- n8n Account or Instance: You can use n8n Cloud or self-host it. This is your automation playground.
- Telegram Bot Token: Create a bot through BotFather on Telegram. It takes about 2 minutes and gives you full control over your bot.
- Kie.ai API Access: Sign up for Kie.ai to access their image generation API that powers the Google Nano Banana model.
Key Components
This workflow uses seven n8n nodes working together like a well-oiled machine:
- Telegram Trigger: Listens for incoming messages with photos
- HTTP Request (Get File Path): Retrieves image location from Telegram
- Set Node: Constructs the complete image URL
- Telegram Node (Response): Sends confirmation to user
- HTTP Request (Generate Image): Calls the AI image generation API
- Wait Node: Pauses until processing completes
- Telegram Node (Send Image): Delivers the edited image back to user
Building Your Telegram Image Editor: Step by Step
Ready to build? Let's walk through this together. Each step builds on the last, creating a seamless automation that feels like magic to your users.
Step 1: Set Up the Telegram Trigger
Start by adding a Telegram Trigger node to your canvas. This is your workflow's ears, constantly listening for incoming messages. Configure it to watch for message updates, specifically those containing photos. Connect your Telegram bot credentials here. The trigger will capture everything: the image, the caption, and the chat ID you'll need later.
Pro tip: Make sure to enable "message" in the updates field so your bot doesn't miss any incoming photos.
Step 2: Retrieve the Image File Path
When someone sends a photo on Telegram, you don't get the actual image right away. You get a file ID. Think of it like a claim ticket. Your next HTTP Request node exchanges that ticket for the actual file location by calling Telegram's getFile API endpoint.
The workflow targets the medium resolution photo (photo[1] in the array) which balances quality and processing speed perfectly. The API returns a file path that tells you exactly where Telegram stored that image.
Step 3: Build the Complete Image URL
Now you have a file path, but you need a full URL. The Set node does this simple but crucial job. It takes the file path from the previous step and constructs a complete URL by combining it with Telegram's file server address. This URL is what you'll send to the AI image generation service.
image_1.png
At this point, you have everything needed to process the image. Time to let your user know their request was received.
Step 4: Send a Confirmation Message
User experience matters. Nobody likes sending a message into the void. Add a Telegram node that immediately responds with "Got it! I'm sending it to our image generator right now!" This quick acknowledgment makes your bot feel responsive and professional, even though the actual processing happens in the background.
Step 5: Generate the Edited Image with AI
Here's where the magic happens. Another HTTP Request node calls the Kie.ai API, sending along three critical pieces of information: the user's caption as the editing prompt, the image URL, and your desired output specifications (PNG format, 1:1 aspect ratio).
The workflow uses Google's Nano Banana Edit model, which specializes in understanding natural language prompts and applying sophisticated edits to images. The API works asynchronously, meaning it doesn't block your workflow. Instead, it will call back when processing finishes.
image_2.png
Step 6: Wait for Processing and Deliver the Result
The Wait node pauses your workflow execution until the API sends its callback. This is smarter than repeatedly checking if the image is ready. When the callback arrives with the processed image, the final Telegram node springs into action, sending the edited image back to your user.
From the user's perspective, they sent an image with instructions and received a transformed version. Behind the scenes, your workflow orchestrated six different operations seamlessly.
image_3.png
Why This Workflow Changes the Game
You've built more than just an image editor. You've created a versatile automation platform with countless applications.
Real-World Use Cases
- Social Media Managers: Quick edits for Instagram stories or posts without leaving Telegram
- Real Estate Agents: Enhance property photos on the go before sharing with clients
- Content Creators: Apply consistent filters or styles to multiple images through simple text commands
- E-commerce Teams: Standardize product photo backgrounds or lighting with natural language
- Personal Use: Edit vacation photos instantly while still traveling
The Benefits You'll Love
This workflow automation delivers benefits that compound over time. Zero manual intervention means you can process hundreds of images without lifting a finger. The natural language interface means anyone on your team can use it, no training required. Operating costs stay minimal because you only pay for the API calls you actually use.
Best of all, the entire system runs 24/7. Whether someone sends an image at 3 AM or during lunch, your bot responds instantly. That level of availability would require hiring staff with traditional approaches.
Your Next Steps
The beauty of n8n workflows is their flexibility. Start with this foundation and customize it for your specific needs. Add error handling for failed API calls. Implement usage tracking to monitor costs. Create different bots for different image editing styles. The possibilities grow as you experiment.
Building automated workflows like this one shifts you from doing repetitive tasks to designing systems that work while you sleep. That's the power of workflow automation. That's the promise of n8n.
Now go ahead. Set up your Telegram bot, connect those APIs, and build something that makes your life easier. Your future self will thank you.
Share this article
Help others discover this content
Tap and hold the link button above to access your device's native sharing options
More in Marketing & Advertising
Continue exploring workflows in this category

Marketing & Advertisingbeginner
1 min read
How to Automate Client Onboarding with n8n: From Intake Forms to AI-Powered Research Briefs
Nayma Sultana
Nov 15

Marketing & Advertisingbeginner
1 min read
How to Automate Personalized Cold Email Campaigns with n8n and Instantly AI
Kazi Sakib
Nov 9
Est: 35 minutes

Marketing & Advertisingintermediate
1 min read
Transform Product Images into Marketable Images - n8n Workflow
Kazi Sakib
Oct 27
Est: 55 minutes