Skip to content
FlowHubFluxonLab
C
Telegramfree

Generate AI selfie photos from Telegram with AtlasCloud and Blotato

by Dr. Firasadapted from n8n official workflow galleryUpdated Aug 2026
RequiresCCodeHTTP RequestHTTP RequestTelegramTelegram
Share Post Share
Telegram TriggerCoCollect album photosCollect album p…SeConfigurationGet file 1BlUpload image 1Get file 2BlUpload image 2HRGenerate imageWaWaitHRGet statusIfCompleted?SeGet image URLBlPublish to InstagramPublish to Inst…BlPublish to FacebookPublish to Face…Notify on TelegramNotify on Teleg…123456789101112131415
1/5
STEPS · 15
Starts on a Telegram event

Quick overview This workflow listens for a two-photo Telegram album, uploads both images to Blotato for public hosting, sends them with a caption prompt to AtlasCloud (Nano Banana 2 Lite) to generate an edited “AI selfie,” then posts the result to Instagram and Facebook and replies with the image on Telegram. How it works Triggers when a Telegram bot receives a message and buffers album uploads until it has two photos plus the caption text. Stores the caption as the edit prompt and sets generation options such as model, aspect ratio, output format, and poll interval. Downloads each photo from Telegram and uploads both to Blotato to obtain stable public image URLs. Sends the two hosted image URLs and the prompt to the AtlasCloud generateImage API using the Nano Banana 2 Lite edit model. Waits and polls the AtlasCloud prediction status until it is marked completed or succeeded. Extracts the generated image URL, publishes it to Instagram and Facebook via Blotato, and sends the generated photo back to the originating Telegram chat. Setup Create a Telegram bot and add your Telegram API credentials to the Telegram Trigger and Telegram nodes.

Tags

n8nreference-onlytelegram
Connects
CCodeWHTTP RequesttelegramTelegram
CategoryTelegram
Triggermanual
Complexitycomplex
Nodes15
AddedJul 7, 2026