Skip to content

Latest commit

 

History

History
30 lines (22 loc) · 867 Bytes

File metadata and controls

30 lines (22 loc) · 867 Bytes

python_chatgpt_dummy

Just a Pyhton ChatGPT interacted dummy template project

  1. 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>

  2. Initiate venv python -m venv venv

  3. Start venv python -m venv venv venv\Scripts\activate.bat for Windows source venv/bin/activate for Linux

  4. Install requirements pip install -r requirements.txt

  5. Start application python dummy.py OR using Docker docker build -t python_chatgpt_dummy . docker run -d --name python_chatgpt_dummy python_chatgpt_dummy

  6. Text to your bot in Telegram

  7. ...

  8. PROFIT!