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 users
TOKEN = 'TGBOTAPI'
OPENAIKEY = 'OPENAIAPI'
BOTNICKNAME = '@BOTUSERNAME'
- Start bot with
/start
command - See available commands with
/help
or/start
command - If you've got some error, do
/reset
command.
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