Home ยป OpenAI integrate with Telegram Bot [2nd Method]

OpenAI integrate with Telegram Bot [2nd Method]

0 comment 136 views

Base on karfly/chatgpt_telegram_bot
https://github.com/karfly/chatgpt_telegram_bot

  1. Build a Ubuntu LXC (Hard disk = 2GB)
  2. Allow Root SSH
  3. apt update && apt upgrade -y
  4. Download the code
    wget https://github.com/karfly/chatgpt_telegram_bot/archive/refs/heads/main.zip
  5. Install Unzip and unzip the code
    apt install unzip
    unzip main.zip
  6. Install Docker
    sudo apt update && apt upgrade
    sudo apt install curl -y
    sudo apt install apt-transport-https ca-certificates curl gnupg-agent software-properties-common -y
    curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add –
    sudo add-apt-repository “deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable”
    sudo apt install docker-ce docker-ce-cli containerd.io docker-compose
  7. Configure the code
    mv config/config.example.yml config/config.yml
    mv config/config.example.env config/config.env
    nano config/config.yml
  8. I got an error while processing installation. I have made change on Dockerfile
    From
    RUN pip3 install -U pip && pip3 install -U wheel && pip3 install -U setuptools==59.5.0
    To
    RUN pip3 install –user pip && pip3 install –user wheel && pip3 install –user setuptools==59.5.0
  9. Start to install
    docker-compose –env-file config/config.env up –build

Done

Refer:
https://github.com/karfly/chatgpt_telegram_bot
https://blog.csdn.net/weixin_43214528/article/details/114285697

Leave a Comment