Telegram bot that generates responses using chat gpt. Easy to expand. All code is written according to the concept of OOP
- edit
src/config.py
pip install -r requirements.txt
python3 src/main.py
Well done!
📦src
┣ 📂handlers
┃ ┣ 📜__init__.py
┃ ┗ 📜user.py
┣ 📂service
┃ ┣ 📜ChatGPT.py
┃ ┣ 📜__init__.py
┃ ┗ 📜animation.py
┣ 📜config.py
┗ 📜main.py
📦src - stock way
📂handlers - message handling methods
┗📜user.py - main message handling method
📂service - communication methods: bd, generators.
┗📜ChatGPT.py - crutch for convenient work with api chatgpt (create an object)
┗📜animation.py - animations in the bot. Very convenient to use, designed to offload the load
📜config.py - config or strings all static variables are stored here
📜main.py - main method (used to run)