Skip to content

Latest commit

 

History

History
39 lines (25 loc) · 868 Bytes

README.md

File metadata and controls

39 lines (25 loc) · 868 Bytes

telebot_GPT_3.5_Turbo_DSM_1.0

Prerequisites

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

Telegram setup:

  1. search for botfather

  2. /newbot

    • chatgpt88
    • chatgpt88_bot

    Now click on the url

AIogram docs

https://docs.aiogram.dev/en/latest/

How to run the code

  1. Clone this repository or download the zip file

  2. Create a virtual environment and activate it

  3. 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
  4. Run python src/chatgpt.py to start the bot

  5. Open Telegram and search for your bot username

  6. Start a conversation with your bot and enjoy!