I want to make Image Genration bot called "Vistara AI" make Statics single page website. Using tailwind css, lexend Font and lucid icons. Make to much professional modern attractive Image Genration AI, It Genrate Aall the type of Image. Create all the section. Make responsive with toggle open snd close, with animation, and not heavy animation, and don't impect on performance. Create Image section also user will enter prompt and get response as Image, when user enter propmt then after below image box show loading circle then got image. Here is example of image "if message.text.startswith("/img"):

    prompt = message.text[4:].strip()

    

    if prompt:

        bot.sendChatAction(

            chat_id=message.chat.id,

            action="typing"

        )

        

        api_url = f"https://botfather.cloud/Apis/ImgGen/client.php?inputText={prompt}"

        

        try:

            response = HTTP.get(api_url, proxy=True)

            

            if response.status_code == 200:

                truncated_prompt = (prompt[:60] + '...') if len(prompt) > 60 else prompt

                

                caption = f"<b>🖼 Generated: </b><i>{truncated_prompt}</i>"

                

                bot.sendChatAction(

                    chat_id=message.chat.id,

                    action="upload_photo"

                )

                

                bot.sendPhoto(

                    chat_id=message.chat.id,

                    photo=response.content,

                    reply_to_message_id=message.message_id,

                    caption=caption,

                    parse_mode="HTML"

                )

            else:

                bot.sendMessage(

                    chat_id=message.chat.id,

                    text="⚠️ <b>Service unavailable</b>",

                    parse_mode="HTML",

                    reply_to_message_id=message.message_id

                )

                

        except Exception as e:

            bot.sendMessage(

                chat_id=message.chat.id,

                text="⚠️ <b>Processing error</b>",

                parse_mode="HTML",

                reply_to_message_id=message.message_id

            )

    else:

        bot.sendMessage(

            chat_id=message.chat.id,

            text="✏️ <b>Please provide a prompt</b>\nExample: <code>/img cute cat</code>",

            parse_mode="HTML",

            reply_to_message_id=message.message_id

        )use karo" html and js only

Comments