To follow this tutorial, you will need:
- Python 3.7 or higher
- A Telegram account and a smartphone
- An OpenAI account and an API key
-
search for botfather
-
/newbot
- chatgpt88
- chatgpt88_bot
Now click on the url
https://docs.aiogram.dev/en/latest/
-
Clone this repository or download the zip file
-
Create a virtual environment and activate it
-
Install the dependencies using
pip install -r requirements.txt
Or alternatively to the above two steps you can run
init_setup.sh
by running the following command in your terminal-bash init_setup.sh
-
Run
python src/chatgpt.py
to start the bot -
Open Telegram and search for your bot username
-
Start a conversation with your bot and enjoy!