A telegram bot that uses a headless chrome wrapper to communicate with ChatGPT.
see: https://github.com/Klingefjord/ChatGPT-API-Python
- Go to the Miniconda download page.
- Click on the appropriate installer for your operating system.
- Follow the prompts to complete the installation.
- Open a terminal or command prompt.
- Navigate to the directory where you want to create the environment.
- Run
conda env create -f environment.yml
to create the environment. - Activate the newly created environment
conda activate chat
- Open a terminal or command prompt.
- Navigate to the directory where you installed Miniconda.
- Run
playwright install
to download the necessary Chromium software. - Run
playwright install-deps
to download the necessary dependencies
- Set up your Telegram bot token and user ID in the
.env
file. See these instructions for more information on how to do this. - Edit the
.env.example
file, rename it to.env
, and place your values in the appropriate fields.
python main.py
- Based on @Altryne on Twitter (https://github.com/altryne/chatGPT-telegram-bot)