A telegram bot for ChatGPT API.
- Streaming by edit message
- Chat mode
- Q&A mode
- Select model
- Retry
- Edit query
- Check out API usage
- Create your own telegram-bot by @BotFather and get HTTP API.
- Clone this repo.
git clone https://github.com/MZhao-ouo/tgGPT.git
- 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" )
- Install python library
pip install requirements.txt
- Run
python tgGPT.py