Telegram bot connecting to ChatGPT 3.5 using OpenAI API. Supports multiple users, multiple conversations with chat context. Also has a few prompts presets.
pip install -r requirements.txt ; mkdir usersTOKEN = 'TGBOTAPI'
OPENAIKEY = 'OPENAIAPI'
BOTNICKNAME = '@BOTUSERNAME'- Start bot with
/startcommand - See available commands with
/helpor/startcommand - If you've got some error, do
/resetcommand.
If you want to add new presets, redact contexts.py
- Add bot to your group
- Create new conversations and switch between your conversations with bot
- Switch between prompt presets