Welcome to the AI Tools Telegram Bot, your personal assistant for creating AI-generated art, enhancing images, and more! This Telegram bot leverages the power of various AI models to perform tasks like generating art from text prompts, high-resolution image restoration, colorizing black and white photos, removing backgrounds, and describing the content of images.
- Create AI Art (Text To Image): Generate stunning AI art from text prompts.
- Robust Face Restoration: Restore old photos with a robust face restoration algorithm.
- Add Colors to Old Images: Colorize black and white photos to bring them to life.
- Remove Photo Backgrounds: Effortlessly remove backgrounds from photos.
- Visual Description AI: Get a detailed description of the content of an image.
To use the AI Tools Telegram Bot, follow these installation steps:
-
Install the required Python libraries:
pip install pyrogram==2.0.106 replicate asyncio requests
-
Get your API tokens:
- Main API ID and API Hash from my.telegram.org/apps
- Bot token from @BotFather
- Replicate API token from Replicate
-
Set environment variables:
export REPLICATE_API_TOKEN="your_replicate_api_token"
-
Update the API configurations in the script with your obtained tokens.
-
Run the script:
python bot.py
Start the bot and use the following commands to interact with it:
/art [prompt]
: Create AI art from a text prompt./resolution
: Enhance the resolution of a photo (Reply to a photo)./colorize
: Add colors to a black and white photo (Reply to a photo)./removebg
: Remove the background of a photo (Reply to a photo)./describe
: Get a detailed description of the content of a photo (Reply to a photo).
Contributions are welcome! Feel free to open issues or pull requests to improve the functionality or fix any bugs.
This project is licensed under the MIT License.