2022-12-04 20:46:02 -06:00
2022-12-05 03:12:33 +03:00
2022-12-04 20:38:50 -06:00
2022-12-04 20:38:50 -06:00
2022-12-04 20:38:50 -06:00
2022-12-04 20:38:50 -06:00
2022-12-04 20:46:02 -06:00
2022-12-04 20:38:50 -06:00

ChatGPT Telegram Bot

Setup

  1. Get your ChatGPT session token. You can find it in chat.openai.com cookies (key: "__Secure-next-auth.session-token")

  2. Get your Telegram bot token from @BotFather

  3. 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>"
  1. Rename config.env.example to config.env:
mv config.env.example config.env

Run

docker compose up --build
S
Description
💬 Telegram bot with ChatGPT, Python-based, using OpenAI's API.
Readme MIT 12 MiB
Languages
Python 99.1%
Dockerfile 0.9%