A lightweight ChatGPT to Telegram bot that lets you interact with a large language model trained by OpenAI.
With Node:
export SESSION_TOKEN="" // The value of the `__Secure-next-auth.session-token` cookie in chat.openai.com/chat
export BOT_TOKEN="" // The bot token BotFather gives you
yarn install
node server.js
With Docker:
docker run --rm \
-e BOT_TOKEN="" \
-e SESSION_TOKEN="" \
realies/chatgpt-telegram-bot
user> /chatgpt hi
bot > Hello! How can I help you today? Let me know if you have any questions and I'll do my best to answer them.
user> /chatgpt new
bot > Starting new conversation