Skip to content

This repository contains a Python Telegram chatbot integrated with the Gemini conversational AI model from Google. With this bot, you can have engaging conversations with users on Telegram using advanced AI capabilities.

Notifications You must be signed in to change notification settings

LaXnZ/python-gemini-telegram-chatbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Gemini Telegram Chatbot

This repository contains a Python Telegram chatbot integrated with the Gemini conversational AI model from Google. With this bot, you can have engaging conversations with users on Telegram using advanced AI capabilities.

Installation

  1. Install the required Python packages:

    • telebot: A library for interacting with the Telegram Bot API.

      pip install telebot
    • google-generativeai: A Python client library for accessing Google's generative AI models, including Gemini.

      pip install google-generativeai
    • python-dotenv: A library for managing environment variables from a .env file.

      pip install python-dotenv
  2. Clone this repository to your local machine:

    git clone https://github.com/LaXnZ/python-gemini-telegram-chatbot.git
  3. Navigate to the project directory:

    cd python-gemini-telegram-chatbot
  4. Create a .env file in the project directory and add your Telegram bot token and Gemini API key:

    TELEGRAM_TOKEN=your_telegram_token_here
    GENAI_API_KEY=your_genai_api_key_here
    

Usage

  1. Run the bot script using Python:

    python main.py
  2. Start a conversation with your bot on Telegram and enjoy interactive conversations with the Gemini AI model.

Contributing

Contributions to this project are welcome! If you have any ideas for improvements or new features, feel free to fork the repository, make your changes, and submit a pull request.


Replace your_telegram_token_here and your_genai_api_key_here in the .env file with your actual Telegram bot token and Gemini API key. Customize the instructions and placeholders as needed for your specific project.

About

This repository contains a Python Telegram chatbot integrated with the Gemini conversational AI model from Google. With this bot, you can have engaging conversations with users on Telegram using advanced AI capabilities.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages