This repo is a Telegram Bot providing access to ChatGPT and longevity-genie LangChain.
Based on karfly/chatgpt_telegram_bot which accessible as @chatgpt_karfly_bot
- GPT-3.5 and GPT-4 support
- Group Chat support (/help_group_chat to get instructions)
- Voice message recognition
- Code highlighting
- 2 chat modes: 👩🏼🎓 Assistant, 🧬 Longevity Genie. You can create your own chat modes by editing
config/chat_modes.yml
- Support of ChatGPT API
- List of allowed Telegram users
- Track $ balance spent on OpenAI API
/retry
– Regenerate last bot answer/new
– Start new dialog/mode
– Select chat mode/balance
– Show balance/settings
– Show settings/help
– Show help
-
Get your OpenAI API key
-
Get your Telegram bot token from @BotFather
-
Deploy longevity-genie
-
Copy
config/config.example.yml
andconfig/config.example.env
using 2 commands belowcp config/config.example.yml config/config.yml cp config/config.example.env config/config.env
-
Edit
config/config.yml
to set your tokens and run: -
🔥 And now run:
docker-compose --env-file config/config.env up --build