Skip to content

Ahmed-GoCode/Prompt2PicBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 

Repository files navigation

πŸ€– Prompt2PicBot - AI Image Generator Bot


πŸ“Œ About

Prompt2PicBot is a Telegram Bot that generates AI-powered images from text prompts using the Lexica API.
Just send a description in chat, and the bot will return multiple high-quality AI-generated pictures.


✨ Features

  • ⚑ Generate AI images from text prompts
  • 🎨 Powered by Lexica AI
  • πŸ“± Works directly inside Telegram
  • πŸ–Ό Sends up to 10 images per query
  • βœ… Lightweight PHP-based implementation

πŸš€ Setup Instructions

Follow these steps to run the bot on your own server:

1️⃣ Clone Repository

git clone https://github.com/Ahmed-GoCode/Prompt2PicBot.git
cd Prompt2PicBot

2️⃣ Install PHP & cURL sudo apt update && sudo apt install php php-curl -y

3️⃣ Create Telegram Bot

Open Telegram and search for @BotFather

Run /newbot and follow the instructions

Copy your Bot Token

4️⃣ Configure Bot Token

Open the index.php file and replace: const API_KEY = 'your-bot-token-here';

5️⃣ Set Webhook

Run this in your browser (replace <YOUR_DOMAIN> and <TOKEN>): https://api.telegram.org/bot<TOKEN>/setWebhook?url=https://<YOUR_DOMAIN>/index.php

6️⃣ Start Using!

Open your bot on Telegram

Type /start or send any prompt

Get your AI-generated images πŸŽ‰

│── index.php      # Main bot script
│── README.md      # Documentation

πŸ‘¨β€πŸ’» Developer Ahmed-GoCode β†’ GitHub

About

A Telegram bot that generates AI-powered images from text prompts using the Lexica API.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages