All workflows
Telegram logoOpenAI logoStability AI logoImgBB logo

Message a description, get a picture back in Telegram

Send your Telegram bot a description and it draws that picture and sends it back to the same chat.

On new message in Telegram4 apps6 steps

Apps it connects

Authenticate each one once and the workflow is ready to run.

What it does

Each integration step this workflow runs, in order, what it is for, and the conditions and loops that decide when it runs.

  1. 1TelegramNew message triggerStarts a run whenever a new message arrives in the chat your bot watches.
  2. 2OpenAIQuery modelAsks the AI whether the description is safe to draw, refusing real people, sexual, violent or hateful content and fakes.
  3. 3Stability AIGenerate imageDraws the described picture in your chosen style and shape, steering away from text, logos, real people and gore.
  4. If pictureRef is not empty

    1. 4ImgBBUpload imageHosts a public copy of the picture for one week so Telegram can fetch it from a real link.
  5. If pictureUrl is not empty

    1. 5TelegramSend photoSends the finished picture back to the same chat, captioned with the description that was asked for.
  6. 6TelegramSend messageSends a plain reply when the request is too short, refused by the safety check or could not be drawn.

How it works

What happens on each run, in plain English.

Whenever a message arrives in the chat your Telegram bot watches, the description in it is checked for safety, drawn as a picture in the style and shape you have chosen, and sent back to the same chat as a photo captioned with what was asked for.

The picture goes back only to the chat that asked for it. Every request passes a safety check first: the AI is asked whether the description is one the bot should draw, and a picture is only made on a clear yes. Real or identifiable people, sexual, violent or hateful content, anything meant to pass as a real document or brand, and instructions for making a weapon or a drug are refused, and the chat is told why. If the check does not come back, or the picture cannot be made or hosted, you get a plain message rather than silence. The bot's own replies are recognised and left alone.

Before the first run you need a Telegram bot in the chat, an image generator and an image host, which keeps a public copy for a week so Telegram can fetch it.

telegramimagesaibotchatstability

Start from a workflow that already works.

Add "Message a description, get a picture back in Telegram" to your workspace, connect its apps, and make it yours. No credit card required.

Free plan available · No credit card required