Working v0

This commit is contained in:
Karim Iskakov
2022-12-04 20:38:50 -06:00
parent faa4fc70dc
commit 4c36f8738a
6 changed files with 151 additions and 1 deletions
+24 -1
View File
@@ -1 +1,24 @@
# chatgpt_telegram_bot
# ChatGPT Telegram Bot
## Setup
1. Get your ChatGPT session token. You can find it in [chat.openai.com](https://chat.openai.com) cookies (key: `"__Secure-next-auth.session-token"`)
2. Get your Telegram bot token from [@BotFather](https://t.me/BotFather)
3. Edit `config.env.example` to add your tokens. It looks like this:
```bash
TELEGRAM_TOKEN="<YOU TELEGRAM BOT TOKE>"
CHATGPT_SESSION_TOKEN="<YOUR CHATGPT SESSION ID>"
ALLOWED_TELEGRAM_USERS="<@USERNAME>"
```
4. Rename `config.env.example` to `config.env`:
```bash
mv config.env.example config.env
```
## Run
```bash
docker compose up --build
```