https://github.com/tmlnv/chatgpt_telegram_bot
A Telegram bot for seamless engagement with ChatGPT models.
https://github.com/tmlnv/chatgpt_telegram_bot
chatgpt kandinsky telegram telegram-bot
Last synced: 1 day ago
JSON representation
A Telegram bot for seamless engagement with ChatGPT models.
- Host: GitHub
- URL: https://github.com/tmlnv/chatgpt_telegram_bot
- Owner: tmlnv
- License: mit
- Created: 2023-03-02T15:43:38.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-03-06T18:38:33.000Z (almost 2 years ago)
- Last Synced: 2024-03-06T20:11:20.281Z (almost 2 years ago)
- Topics: chatgpt, kandinsky, telegram, telegram-bot
- Language: Python
- Homepage:
- Size: 104 KB
- Stars: 3
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# chatgpt_telegram_bot
This is a Telegram bot that allows you to interact with ChatGPT, an advanced chatbot powered by OpenAI. The bot is designed to run via Docker Compose, making it easy to deploy and manage in any environment.
## Features
- Code highlighting
- Chat modes: 🛎 Assistant, 💻 Code Assistant, 📝 Text Improver , ⚫ Blank
- List of allowed Telegram users
- Message streaming
## Bot commands
- `/new` – Start new conversation
- `/mode` – Select chat mode
- `/retry` – Regenerate last bot answer
- `/help` – Show help
## Setup
1. Get your Telegram bot token from [@BotFather](https://t.me/BotFather)
2. Edit `config/config.example.yml` to set your telegram token and
[Hugging Face api key](https://huggingface.co/settings/tokens)
(write permissions necessary) and run 2 commands below
(*if you're advanced user, you can also edit* `config/config.example.env`):
```bash
mv config/config.example.yml config/config.yml
mv config/config.example.env config/config.env
```
And now **run**:
```bash
docker-compose -f docker-compose.yml up --build
```
## References
1. [*Build ChatGPT from GPT-3*](https://learnprompting.org/docs/applied_prompting/build_chatgpt)
2. [*Reverse Engineered ChatGPT API by OpenAI*](https://github.com/acheong08/ChatGPT)
3. [*OpenAI Davinci API Telegram Bot*](https://github.com/karfly/chatgpt_telegram_bot)
4. [*Kandinsky 2.2*](https://huggingface.co/kandinsky-community/kandinsky-2-2-decoder)
5. [*OpenAI API Free Reverse Proxy*](https://github.com/PawanOsman/ChatGPT)
6. [*GPT4FREE*](https://github.com/xtekky/gpt4free)