Just a Pyhton ChatGPT interacted dummy template project
-
Get Telegram API token and ChatGPT API token (too lazy to google it) and create your telegram bot with @BotFather in Telegram. Get bot token. Create config.env file in project root with following content:
[API_KEYS]TELEGRAM_TOKEN=<your_telegram_bot_token>CHATGPT_TOKEN=<your_chatgpt_token> -
Initiate venv
python -m venv venv -
Start venv
python -m venv venv venv\Scripts\activate.batfor Windowssource venv/bin/activatefor Linux -
Install requirements
pip install -r requirements.txt -
Start application
python dummy.pyOR using Dockerdocker build -t python_chatgpt_dummy .docker run -d --name python_chatgpt_dummy python_chatgpt_dummy -
Text to your bot in Telegram
-
...
-
PROFIT!