https://github.com/prakhardoneria/stable-diffusion-bot-telegram
https://github.com/prakhardoneria/stable-diffusion-bot-telegram
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/prakhardoneria/stable-diffusion-bot-telegram
- Owner: PrakharDoneria
- Created: 2024-04-14T05:07:40.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-14T05:07:48.000Z (over 1 year ago)
- Last Synced: 2025-04-06T07:34:09.291Z (6 months ago)
- Language: Python
- Homepage: https://rapidapi.com/yashdoneria/api/text-to-image-stable-ai
- Size: 31.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# Text-to-Image Telegram Bot
This Telegram bot allows users to generate images based on prompts using an AI model. Users can send prompts to the bot, and it will generate an image corresponding to the prompt and send it back to the user.
## Prerequisites
Before running the bot, ensure you have the following:
- Python 3.x installed on your system
- Telegram API token. You can obtain this by creating a bot on Telegram and obtaining the API token.
- RapidAPI key for accessing the Text-to-Image API. You can obtain this from the RapidAPI website.## Installation
1. Clone the repository:
```
git clone https://github.com/prakhardoneria/stable-diffusion-bot-telegram.git
```2. Install the required Python packages:
```
pip install -r requirements.txt
```3. Set the environment variables:
```
export TELEGRAM_API_TOKEN="your_telegram_api_token"
export RAPIDAPI_KEY="your_rapidapi_key"
```4. Run the bot script:
```
python bot.py
```## Usage
Once the bot is running, users can interact with it by sending messages to the bot on Telegram. The following commands are supported:
- `/start`: Initiates the bot and provides instructions on how to use it.
- `/ai `: Generates an image based on the provided prompt. Replace `` with your desired text.Don't forget to subscribe to the Text-to-Image Stable AI API on RapidAPI to unlock advanced features and support the development of the service: [Subscribe here](https://rapidapi.com/yashdoneria/api/text-to-image-stable-ai).
## Contributing
Contributions are welcome! If you encounter any issues or have suggestions for improvements, feel free to open an issue or submit a pull request.
Also, consider subscribing to the Text-to-Image Stable AI API on RapidAPI to support the project and gain access to additional features: [Subscribe here](https://rapidapi.com/yashdoneria/api/text-to-image-stable-ai).