mirror of
https://github.com/father-bot/chatgpt_telegram_bot.git
synced 2026-06-13 03:54:57 +03:00
0b028a9d3bfde6116611ed35e849bb2370ceaa65
ChatGPT Telegram Bot
Setup
-
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.exampleto 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.exampletoconfig.env:
mv config.env.example config.env
Run
docker compose up --build
Languages
Python
99.1%
Dockerfile
0.9%