Skip to content

code-monad/ChatGPTBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Requirements

Usage

First, you should install python-telegram-bot and ChatGPT library from source

# Install telegram bot library
git clone https://github.com/python-telegram-bot/python-telegram-bot
cd python-telegram-bot && python setup.py install --user
# For proxy support
pip install httpx[socks]

# Install ChatGPT API
git clone https://github.com/acheong08/ChatGPT
cd ChatGPT && python setup.py install --user

First, create a config.toml from the template file

Modify the content, replace with the correct keys/session-IDs (Check Wiki)

python main.py

Avaliable Commands

  • /start -- Initialize
  • /list -- List all memories
  • /check -- Check current session detail
  • /reroll -- Refresh latest reply with latest prompt
  • /reborn -- Start a new session
  • /rollback -- Forgot last prompt

About

A Demo ChatGPT Telegram Bot Script

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages