GenAI Bot is a Telegram bot that leverages Google Generative AI to generate and edit images based on user prompts. It provides a simple interface for users to interact with AI-powered image generation and editing capabilities.
- Image Generation: Generate AI-created images based on text prompts.
- Image Editing: Edit existing images by replying to them with a text prompt.
- User-Friendly Commands: Easy-to-use commands for generating and editing images.
/help
: Get help and usage instructions./gen <prompt>
: Generate a new AI image based on the provided prompt./edit <prompt>
: Edit an existing image by replying to it with this command and a prompt.
-
Clone the repository:
git clone https://github.com/notsopreety/genai-bot.git cd genai-bot
-
Install dependencies:
npm install
-
Create a
.env
file in the project root and add the following environment variables:TELEGRAM_BOT_TOKEN=your_telegram_bot_token GEMINI_API_KEY=your_google_generative_ai_api_key
-
Start the bot:
node index.js
- Add the bot to your Telegram account.
- Use the
/start
command to see the available features. - Generate or edit images using the
/gen
or/edit
commands.
downloads/
: Stores downloaded images from Telegram.outputs/
: Stores generated or edited images.index.js
: Main bot logic.
This project is licensed under the MIT License. See the LICENSE file for details.
Contributions are welcome! Feel free to submit issues or pull requests to improve the project.