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.
- β‘ 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
Follow these steps to run the bot on your own server:
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