-
Get your ChatGPT session token. You can find it in chat.openai.com cookies (key:
"__Secure-next-auth.session-token"
) -
Get your Telegram bot token from @BotFather
-
Edit
config.env.example
to add your tokens. It looks like this:
TELEGRAM_TOKEN="<YOU TELEGRAM BOT TOKE>"
CHATGPT_SESSION_TOKEN="<YOUR CHATGPT SESSION ID>"
ALLOWED_TELEGRAM_USERNAMES="<@USERNAME>"
- Rename
config.env.example
toconfig.env
:
mv config.env.example config.env
docker compose up --build