/Jimmybot-2024

A telegram chatbot powered by python and Google's Gemini API

Primary LanguagePython

Jimmybot

I made a Telegram Bot powered by Google's Gemini!

Talk to Jimmybot here

Bot Preview

Description

This was just a hobby project. Exploring Google's Gemini-Pro and Gemini-Pro-Vision. Hence, the chatbot accepts both text and image inputs. And also, remembers chat history (up to a limited number of convos). Bot can be added to chat groups but will only reply if you directly reply to it. You can ask the bot anything. I have one rule only, do not spam message the bot! Thank you.

Disclaimer:

  1. Bot is not guaranteed to be live 24/7. I have not permanently decided on a way to host it.
  2. Known issues exists they are the following so far:
    • If you pin a message in the chatgroup, for some reason bot will pick it up and reply to it. But error occurs because conversation history is messed up. (try it then you will know what i am talking about)

Do let me know if you encounter any other issues. Thanks.

Getting Started

Dependencies

  • Python 3.10 or higher
  • Libraries listed in requirements.txt
  • You need a telegram api key and gemini api key

Installing

  1. Clone the repository:

    git clone https://github.com/your_username/Jimmybot-2024.git
    
  2. Activate the virtual environment:

    ./virt/Scripts/activate
    
  3. Install the required dependencies:

    pip install -r requirements.txt
    

Executing program

To run the bot, execute the following command:

python main.py

Help

If you encounter any issues, please check the official documentation or reach out to the author for assistance.

Authors

  • Me. Check out my socials:

Version History

  • 0.1
    • Initial Release

License

This project is licensed under the MIT License.

Acknowledgments

Special thanks to Google for providing the Gemini API and to the developers of the libraries used in this project.