Skip to content

A Telegram bot powered by Google Gemini AI that allows users to generate and edit images through a simple chat interface. The bot features two main functions: creating new images from text descriptions and editing existing photos based on text instructions. Built with Python and pyTelegramBotAPI, it provides a user-friendly experience with interact

Notifications You must be signed in to change notification settings

timurkafff/Telegram-bot-ai-image

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

1 Commit
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ€– Telegram Bot for AI Image Processing

img

Python Telegram Gemini AI

πŸ“ Description

This Telegram bot provides a convenient interface for working with images using artificial intelligence. The bot allows you to generate new images based on text prompts and edit existing photos using AI.

✨ Features

  • Image Generation: Create new images based on text descriptions
  • Photo Editing: Modify existing images using text instructions
  • User-Friendly Interface: Easy interaction through buttons and text commands
  • High Quality: Powered by the robust Gemini 2.0 model for image processing

πŸ› οΈ Technologies

  • Python 3.9+
  • pyTelegramBotAPI
  • Google Gemini AI API
  • Pillow (for image processing)

πŸš€ Installation and Launch

  1. Clone the repository:

    git clone https://github.com/timurkafff/Telegram-bot-ai-image.git
    cd Telegram-bot-ai-image
  2. Create a virtual environment and install dependencies:

    python -m venv venv
    source venv/bin/activate  # On Windows: venv\Scripts\activate
    pip install -r requirements.txt
  3. Configure environment variables or edit the main.py file with your tokens:

  4. Run the bot:

    python main.py

πŸ“‹ Usage

  1. Find the bot on Telegram by its username
  2. Send the /start command to begin
  3. Choose the desired function using the buttons:
    • Image Generation: Create a new image based on a text description
    • Photo Editor: Modify an uploaded image based on text instructions

πŸ™ Acknowledgments

About

A Telegram bot powered by Google Gemini AI that allows users to generate and edit images through a simple chat interface. The bot features two main functions: creating new images from text descriptions and editing existing photos based on text instructions. Built with Python and pyTelegramBotAPI, it provides a user-friendly experience with interact

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages