/tgGPT

A telegram bot for ChatGPT API. (Streaming, Select model)

Primary LanguagePythonMIT LicenseMIT

tgGPT

A telegram bot for ChatGPT API.

output_accelerated

Feature

  • Streaming by edit message
  • Chat mode
  • Q&A mode
  • Select model
  • Retry
  • Edit query
  • Check out API usage

Usage

  1. Create your own telegram-bot by @BotFather and get HTTP API.
  2. Clone this repo.
git clone https://github.com/MZhao-ouo/tgGPT.git
  1. Edit config.json
cp config_example.json config.json

Enter your bot HTTP API, OpenAi API KEY, and whitelist.

You can find your telegram id by @JsonDumpBot. ("message" > "from" > "id" )

  1. Install python library
pip install requirements.txt
  1. Run
python tgGPT.py