https://github.com/realies/chatgpt-telegram-bot
💬 Lightweight ChatGPT to Telegram Bot
https://github.com/realies/chatgpt-telegram-bot
bot chatgpt docker javascript lightweight node telegram
Last synced: 3 months ago
JSON representation
💬 Lightweight ChatGPT to Telegram Bot
- Host: GitHub
- URL: https://github.com/realies/chatgpt-telegram-bot
- Owner: realies
- Created: 2022-12-07T20:38:42.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-03-06T10:10:54.000Z (over 3 years ago)
- Last Synced: 2025-04-07T23:11:12.594Z (about 1 year ago)
- Topics: bot, chatgpt, docker, javascript, lightweight, node, telegram
- Language: JavaScript
- Homepage: https://hub.docker.com/r/realies/chatgpt-telegram-bot
- Size: 132 KB
- Stars: 30
- Watchers: 2
- Forks: 9
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ChatGPT-Telegram-Bot




A lightweight ChatGPT to Telegram bot that lets you interact with a large language model trained by OpenAI.
# Installation
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
```
# Usage
```
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
```