Skip to content

link-foundation/chatgpt-telegram-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

telegram-gpt-bot

Before you begin, make sure you have Docker and Python installed.

  1. Creating a bot in Telegram
  • Open @BotFather.
  • Type /newbot and follow the instructions to create a new bot.
  • @BotFather will provide a token for the new bot.
  1. Clone the repository

    git clone https://github.com/deep-foundation/chatpgt-telegram-bot
  2. Login to the code folder

    cd .\chatpgt-telegram-bot\python\
  3. Setting environment variables After entering the code folder, you will need to set up environment variables. To do this, create a .env file. In this file you can change the values as follows:

    OPENAI_API_KEY=your_openai_api_key
    TELEGRAM_TOKEN=your_telegram_bot_token
  4. Building a Docker image

    docker build -t deep-chatgpt-telegram-bot .
  5. Running a Docker container

    docker run -p 8080:8080 --name container-deep-chatgpt-telegram-bot deep-chatgpt-telegram-bot

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published