ChatGPT Telegram bot

Try on Telegram

Setup

  1. Get your OpenAI API key

  2. Get your Telegram bot token from @BotFather

  3. Clone the repo:

    git clone https://github.com/Mihonarium/chatgpt-gpt4-telegram-bot.git
    cd chatgpt-gpt4-telegram-bot
  4. Edit config.yml to set your tokens.

  5. 🔥 And now run:

    go get ./...
    go run main.go

Commands

  • /retry - Regenerate last bot answer
  • /new - Start new dialog
  • /gpt4 - Switch to GPT-4
  • /gpt35 - Switch to GPT-3.5-turbo
  • /system_prompt - Set the system prompt