stebansaa / chatGPT-telegram-bot

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ChatGPT Telegram Bot

  • It uses playwright and chromium to open browser and parse html
  • It is an unoffical api for development purpose only.
  • This wont work over SSH or a Docker image, you need to do this on a desktop environment where X server is available.

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

License:MIT License


Languages

Language:Python 98.2%Language:Shell 1.8%