Skip to content

realies/chatgpt-telegram-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ChatGPT-Telegram-Bot

GitHub Workflow Status Docker Build Docker Pulls Docker Image Size

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