Enhance & expand Telegram images to 3:2 with CodeFormer & LightX AI
Ready for 3.0Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.
Nodes used (10)
- Telegram
n8n-nodes-base.telegram - Edit Fields (Set)
n8n-nodes-base.set - AWS S3
n8n-nodes-base.awsS3 - HTTP Request
n8n-nodes-base.httpRequest - If
n8n-nodes-base.if - Wait
n8n-nodes-base.wait - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - Merge
n8n-nodes-base.merge - Code
n8n-nodes-base.code - Telegram Trigger
n8n-nodes-base.telegramTrigger
What it does
π Automatically enhance and expand Telegram images with AI This n8n workflow turns your Telegram bot into a powerful AI photo enhancer! Whether users send a photo or a link, it processes the image by: 1. π₯ Receiving the input (photo or link) 2. π§ Upscaling quality using Replicate's CodeFormer 3. π Analyzing image dimensions and calculating paddings to fit the 3:2 ratio 4. πΌοΈ Expanding the image contextually with LightX AI 5. βοΈ Uploading the result to S3 6. π Sending back a public URL to the user in Telegram --- π₯ Who is it for? - Telegram bot creators - Content creators & photographers - SMM pros looking to quickly polish user images - AI enthusiasts who want plug-and-play image workflows --- π οΈ Setup Requirements - A Telegram bot (via @BotFather) - AWS S3 Bucket (public) - Replicate API key - LightX API key --- π§ How to customize - Add custom prompts or ratio in JavaScript node - Connect to other AI tools for filters or style transfer - Switch storage destination (e.g. Google Drive or Dropbox) --- π‘ Tips - Works great in photo-related communities - Can be used for virtual try-ons, image recovery or thumbnail generation --- π Languages The main sticky note can be localized β feel free to swap it for your audience! ---