Skip to content

A simple telegram bot powered by Google's Gemini (GenAI) with capabilities to illustrating stunning image and allows to edit image like Adobe Photoshop AI.

License

Notifications You must be signed in to change notification settings

notsopreety/genai-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GenAI Bot

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.

Features

  • 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.

Commands

  • /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.

Installation

  1. Clone the repository:

    git clone https://github.com/notsopreety/genai-bot.git
    cd genai-bot
  2. Install dependencies:

    npm install
  3. 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
    
  4. Start the bot:

    node index.js

Usage

  1. Add the bot to your Telegram account.
  2. Use the /start command to see the available features.
  3. Generate or edit images using the /gen or /edit commands.

Folder Structure

  • downloads/: Stores downloaded images from Telegram.
  • outputs/: Stores generated or edited images.
  • index.js: Main bot logic.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Contributing

Contributions are welcome! Feel free to submit issues or pull requests to improve the project.

Acknowledgments

About

A simple telegram bot powered by Google's Gemini (GenAI) with capabilities to illustrating stunning image and allows to edit image like Adobe Photoshop AI.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published