Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/father-bot/chatgpt_telegram_bot
💬 Telegram bot with ChatGPT, Python-based, using OpenAI's API.
https://github.com/father-bot/chatgpt_telegram_bot
chat-gpt chatbot openai python telegram
Last synced: 3 days ago
JSON representation
💬 Telegram bot with ChatGPT, Python-based, using OpenAI's API.
- Host: GitHub
- URL: https://github.com/father-bot/chatgpt_telegram_bot
- Owner: father-bot
- License: mit
- Created: 2022-12-05T00:12:32.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-09-20T09:31:58.000Z (3 months ago)
- Last Synced: 2024-10-29T15:09:26.953Z (about 1 month ago)
- Topics: chat-gpt, chatbot, openai, python, telegram
- Language: Python
- Homepage: https://t.me/chatgpt_karfly_bot
- Size: 1.01 MB
- Stars: 5,145
- Watchers: 66
- Forks: 1,802
- Open Issues: 100
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome - father-bot/chatgpt_telegram_bot - 💬 Telegram bot with ChatGPT, Python-based, using OpenAI's API. (Python)
- awesome-chatgpt - father-bot/chatgpt_telegram_bot - Telegram bot that runs ChatGPT with low latency replies, no request limits, and message streaming support. (UIs / Messenger bots)
- awesome-hacking-lists - father-bot/chatgpt_telegram_bot - 💬 Telegram bot with ChatGPT, Python-based, using OpenAI's API. (Python)
- StarryDivineSky - father-bot/chatgpt_telegram_bot - 5 秒);无请求限制;消息流(观看演示);GPT-4 和 GPT-4 Turbo 支持;GPT-4 Vision 支持;群聊支持(/help_group_chat获取说明);DALLE 2(选择艺术家模式以生成图像);语音消息识别;代码突出显示;15 种特殊聊天模式:助理、代码助理、艺术家、心理学家、埃隆马斯克等。您可以通过编辑配置/chat_modes.yml轻松创建自己的聊天模式;支持 ChatGPT API;允许的 Telegram 用户列表;跟踪在 OpenAI API 上花费的 $ 余额 (A01_文本生成_文本对话 / 大语言对话模型及数据)
README
# ChatGPT Telegram Bot: **GPT-4. Fast. No daily limits. Special chat modes**
We all love [chat.openai.com](https://chat.openai.com), but... It's TERRIBLY laggy, has daily limits, and is only accessible through an archaic web interface.
This repo is ChatGPT re-created as Telegram Bot. **And it works great.**
You can deploy your own bot, or use mine: [@chatgpt_karfly_bot](https://t.me/chatgpt_karfly_bot)
## Features
- Low latency replies (it usually takes about 3-5 seconds)
- No request limits
- Message streaming (watch demo)
- GPT-4 and GPT-4 Turbo support
- GPT-4 Vision support
- Group Chat support (/help_group_chat to get instructions)
- DALLE 2 (choose 👩🎨 Artist mode to generate images)
- Voice message recognition
- Code highlighting
- 15 special chat modes: 👩🏼🎓 Assistant, 👩🏼💻 Code Assistant, 👩🎨 Artist, 🧠 Psychologist, 🚀 Elon Musk and other. You can easily create your own chat modes by editing `config/chat_modes.yml`
- Support of [ChatGPT API](https://platform.openai.com/docs/guides/chat/introduction)
- List of allowed Telegram users
- Track $ balance spent on OpenAI API
---
## News
- *21 Apr 2023*:
- DALLE 2 support
- Group Chat support (/help_group_chat to get instructions)
- 10 new hot chat modes and updated chat mode menu with pagination: 🇬🇧 English Tutor, 🧠 Psychologist, 🚀 Elon Musk, 📊 SQL Assistant and other.
- *24 Mar 2023*: GPT-4 support. Run `/settings` command to choose model
- *15 Mar 2023*: Added message streaming. Now you don't have to wait until the whole message is ready, it's streamed to Telegram part-by-part (watch demo)
- *9 Mar 2023*: Now you can easily create your own Chat Modes by editing `config/chat_modes.yml`
- *8 Mar 2023*: Added voice message recognition with [OpenAI Whisper API](https://openai.com/blog/introducing-chatgpt-and-whisper-apis). Record a voice message and ChatGPT will answer you!
- *2 Mar 2023*: Added support of [ChatGPT API](https://platform.openai.com/docs/guides/chat/introduction).
- *1 Aug 2023*: Added OpenAI API Base to config (useful while using OpenAI-compatible API like [LocalAI](https://github.com/go-skynet/LocalAI))
- *15 Nov 2023*: Added support of [GPT-4 Turbo](https://help.openai.com/en/articles/8555510-gpt-4-turbo)
- *2 Apt 2024*: Added [GPT-4 Vision](https://platform.openai.com/docs/guides/vision) support## Bot commands
- `/retry` – Regenerate last bot answer
- `/new` – Start new dialog
- `/mode` – Select chat mode
- `/balance` – Show balance
- `/settings` – Show settings
- `/help` – Show help## Setup
1. Get your [OpenAI API](https://openai.com/api/) key2. Get your Telegram bot token from [@BotFather](https://t.me/BotFather)
3. Edit `config/config.example.yml` to set your tokens 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
```4. 🔥 And now **run**:
```bash
docker-compose --env-file config/config.env up --build
```## ❤️ Top donations
You can be in this list:1. [LilRocco](https://t.me/LilRocco). Donation: **11000$** (!!!)
1. [Mr V](https://t.me/mr_v_v_v). Donation **250$**
1. [unexpectedsunday](https://t.me/unexpectedsunday). Donation: **150$**
1. [Sem](https://t.me/sembrestels). Donation: **100$**
1. [Miksolo](https://t.me/Miksolo). Donation: **81$**
*Message:* Thank you. Using this docker container every day! Actually created the same project but its good to see that this one is being supported often. Will continue using it! Good architecture choices made in the code 💪!
1. [Ryo](https://t.me/ryokihara). Donation: **80$**
1. [Ilias Ism](https://twitter.com/illyism). Donation: **69$**
*Message:* I wanted to thank you for your amazing code! It helped me start my own Telegram ChatGPT bot and add a bunch of cool features. I really appreciate your hard work on this project. For anyone interested in trying my bot, feel free to check it out here: [magicbuddy.chat](https://magicbuddy.chat) 🤖 Thanks again! 😊
1. [Sebastian](https://t.me/dell1503). Donation: **55$**
1. [Alexander Zimin](https://t.me/azimin). Donation: **50$**
1. [Kbaji20](https://t.me/Kbaji20). Donation: **30$**
1. [Hans Blinken](https://t.me/hblink). Donation: **10$**
## Contributors
- Main contributor: @karfly
- [Jadve AI](https://jadve.com).## References
1. [*Build ChatGPT from GPT-3*](https://learnprompting.org/docs/applied_prompting/build_chatgpt)