I made a Telegram Bot powered by Google's Gemini!
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:
- Bot is not guaranteed to be live 24/7. I have not permanently decided on a way to host it.
- 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.
- Python 3.10 or higher
- Libraries listed in
requirements.txt
- You need a telegram api key and gemini api key
-
Clone the repository:
git clone https://github.com/your_username/Jimmybot-2024.git
-
Activate the virtual environment:
./virt/Scripts/activate
-
Install the required dependencies:
pip install -r requirements.txt
To run the bot, execute the following command:
python main.py
If you encounter any issues, please check the official documentation or reach out to the author for assistance.
- Me. Check out my socials:
- 0.1
- Initial Release
This project is licensed under the MIT License.
Special thanks to Google for providing the Gemini API and to the developers of the libraries used in this project.