Amazing-Python-Scripts
..
/
AI_Image_Generator_Telegram_Bot
README.md
Telegram AI Image Generator Bot
This is an AI Image generator bot. It can create original images from a single text prompt!
Screenshot
Getting Started
This package is simple to use and allows to build an image generation telegram bot
Prerequisites
- Python
- Telegram Bot API Key
- Replicate Stable Diffusion API Key
Installation
- Get a free telegram bot API key from @BotFather telegram bot.
- Also get a free stable diffusion API key from https://replicate.com/account/api-tokens
- Clone the repo
git clone https://github.com/<your_username>/Amazing-Python-Scripts
cd ai_image_generation_telegram_bot
- Install the requirements from the requirements.txt file
pip install -r requirements.txt
- Enter the bot token from BotFather in the TELEGRAM_BOT_TOKEN in the .env file.
- Enter the bot token from Replicate in the REPLICATE_API_TOKEN in the .env file.
- Now run the ai_bot.py file and start chatting.
Bot Commands
You can see a list of commands by typing /help
Commands | Description |
---|---|
/start | Start a conversation |
/help | Get a list of all the commands |
/imagine prompt | Create an image based on the given command |
Created by Arnav Kohli