-
Get your OpenAI API key
-
Get your Telegram bot token from @BotFather
-
Clone the repo:
git clone https://github.com/Mihonarium/chatgpt-gpt4-telegram-bot.git cd chatgpt-gpt4-telegram-bot
-
Edit
config.yml
to set your tokens. -
🔥 And now run:
go get ./... go run main.go
- /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