Skip to content

shushui/chatGPT-telegram-bot

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ChatGPT Telegram Bot

  • Uses your local browser using Playwright to run chatGPT in chromium
  • Sends messages
  • Parses code and text
  • has a /draw command in telegram to draw pictures using stable diffusion!
  • more stuff coming after I rest

CleanShot 2022-12-02 at 16 08 27

How to install

  • Make sure that python and virual environment is installed.

  • Create a conda environment with conda env create -f environment.yml

  • If you are installing playwright for the first time, it will ask you to run this command for one time only to download all the chrome software

playwright install

You need to setup your telegram bot token how to and user id in .env file. Edit the .env.example file and rename it to .env and place your values in there.

  • Now run the server
python server.py

Then find your bot in telegram (you should have already created it with @botfather) and start chatting.

Credit

About

This is a very early attempt at having chatGPT work within a telegram bot

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 97.9%
  • Shell 2.1%