janek / chatGPT-telegram-bot

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ChatGPT Telegram Bot

see announcement thread on twitter

  • 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, deployed

License:MIT License


Languages

Language:Python 97.9%Language:Shell 2.1%