Hi! Can't automate image changes

What are you trying to achieve?

I want to make a way from the telegram bot to change the photo inside the AI-Dali, or others with built-in promt and return the changed photo to the telegram bot.

Steps taken so far

I can’t set up connections. The Dali module draws randomly according to the promt without taking into account the initial photo.
Has anyone done something like this, please help me?