😔 Currently, GPT-Telegramus doesn't have paid ChatGPT and DALL-E support
📈 GPT-Telegramus v5 is an updated and highly refactored version of the old GPT-Telegramus
📄 Documentation is also under development! Consider reading docstring for now
🐛 If you find a bug in GPT-Telegramus, please create an Issue
p.s. Due to my studies, I don't have much time to work on the project 😔
💜 Please support the project so that I can continue to develop it
-
BTC:
bc1qd2j53p9nplxcx4uyrv322t3mg0t93pz6m5lnft
-
ETH:
0x284E6121362ea1C69528eDEdc309fC8b90fA5578
-
ZEC:
t1Jb5tH61zcSTy2QyfsxftUEWHikdSYpPoz
-
Or by my music on 🟦 bandcamp
-
Or message me if you would like to donate in other way 💰
- 💜 Sprav04ka - Tofii'skovyi' language, Testing, Super beautiful poster, Project Logo, Motivation
- 💜 Hanssen - Markdown parsing, bard images, /chat command, caption fix, loading emoji, dynamic splitting, code block splitting, Gemini module, Docker fix, GitHub actions fix and much much more
- 💜 Sergey Krashevich - Docker, GitHub Actions
- 💜 Wahit Fitriyanto - Indonesian language
- 💜 Alexander Fadeyev - EdgeGPT Fix
- 💜 AnthroAsja - Belarusian language
- 💜 Anonymous Samurai - Ukrainian language
- 💜 Dunya Jafari - Persian language
- 💜 Dedy Rudney - French language
- You can join official project's Telegram channel https://t.me/vestnik_labasera
- Also you can test GPT-Telegramus using official bot https://t.me/labasyor3000_bot
- Python 3.10 / 3.11 (not tested on other versions)
- Unblocked access to the telegram bot official API
- Other requirements specified in the
requirements.txt
file
- F33RNI/LMAO API (Unofficial open APIs): https://github.com/F33RNI/LlM-Api-Open
- Groq API (Official Python API): https://github.com/groq/groq-python
- acheong08/EdgeGPT (API): https://github.com/acheong08/EdgeGPT
- jacobgelling/EdgeGPT (API): https://github.com/jacobgelling/EdgeGPT
- acheong08/BingImageCreator (API): https://github.com/acheong08/BingImageCreator
- google/generative-ai-python (API): https://github.com/google/generative-ai-python
- python-telegram-bot (Telegram bot API): https://github.com/python-telegram-bot/python-telegram-bot
See 🐧 Running as service on linux, 🍓 Running on Raspberry Pi (ARM), 🐋 Running in Docker sections for more info
- Install Python 3.10 / 3.11 (not tested on other versions),
venv
andpip
- Download source code (clone repo)
- Create venv
python -m venv venv
/python3 -m venv venv
/python3.10 -m venv venv
/python3.11 -m venv venv
- Activate venv
source venv/bin/activate
/venv\Scripts\activate.bat
- Check python version using
python --version
command - Install requirements
pip install -r requirements.txt --upgrade
- Carefully change all the settings in
config.json
file and in each*.json
file insidemodule_configs
directory. If you have questions regarding any setting, open an issue, I'll try to add a more detailed description - Run main script
python main.py
- 💬 ChatGPT
- Free browser-like Chat-GPT. Currently, without extensions and image requests (text only) (because I don't have a paid account to test it)
- Stream response support
- Chat history support
- See https://github.com/F33RNI/LlM-Api-Open for more info
- 🟦 Microsoft Copilot (aka EdgeGPT aka Bing AI aka Sydney)
- Supports conversation style
/style
- Stream response support
- Chat history support
- Web-browsing (probably) and sources (attributions) support
- Accepts image requests (for lmao_ms_copilot only)
- Send generated images (for lmao_ms_copilot only)
- Suggestions (for lmao_ms_copilot only)
- See https://github.com/F33RNI/LlM-Api-Open for more info
- NOTE: Non-LMAO API (the old one
ms_copilot
) is deprecated! Please uselmao_ms_copilot
instead
- Supports conversation style
- 🎨 Microsoft Copilot Designer (DEPRECATED)
- Bing Image Generator. Used as a separate module due to issues with the EdgeGPT module
- Free and unlimited
- ♊ Gemini
- Google's AI using the Gemini Pro model
- Chat history support
- Requests with images (you can send an image with text to it)
- Requests with images will not be recorded in the chat history since Google hasn't support this
- 🔴 Groq
- Official Python API
- Chat history support
- Very fast response
- Multiple models (see
/model
command)
-
Install Python 3.10 / 3.11 (not tested on other versions),
venv
andpip
-
Clone repo
git clone https://github.com/F33RNI/GPT-Telegramus.git
cd GPT-Telegramus
-
Create venv
python -m venv venv
/python3 -m venv venv
/python3.10 -m venv venv
/python3.11 -m venv venv
-
Carefully change all the settings in
config.json
file and in each*.json
file insidemodule_configs
directory -
Install systemd
sudo apt-get install -y systemd
-
Create new service file
-
sudo nano /etc/systemd/system/gpt-telegramus.service
[Unit] Description=GPT-Telegramus service After=multi-user.target [Service] Type=simple Restart=on-failure RestartSec=5 WorkingDirectory=YOUR DIRECTORY HERE/GPT-Telegramus ExecStart=YOUR DIRECTORY HERE/GPT-Telegramus/run.sh [Install] WantedBy=multi-user.target
-
-
Reload systemctl daemon
sudo systemctl daemon-reload
-
Enable and start service
sudo systemctl enable gpt-telegramus
sudo systemctl start gpt-telegramus
-
Note: Please use
sudo systemctl kill gpt-telegramus
and thensudo systemctl stop gpt-telegramus
if onlysudo systemctl stop gpt-telegramus
not working
-
Install Python 3.11 or later (not tested) if not installed
-
sudo apt-get update sudo apt-get install -y build-essential tk-dev libncurses5-dev libncursesw5-dev libreadline6-dev libdb5.3-dev libgdbm-dev libsqlite3-dev libssl-dev libbz2-dev libexpat1-dev liblzma-dev zlib1g-dev libffi-dev wget https://www.python.org/ftp/python/3.11.8/Python-3.11.8.tgz sudo tar zxf Python-3.11.8.tgz cd Python-3.11.8 sudo ./configure --enable-optimizations sudo make -j 4 sudo make altinstall
-
Check version by typing
python3.11 -V
. After this, you should usepython3.11
command instead ofpython
or you can add it to thebashrc
by typingecho "alias python=/usr/local/bin/python3.11" >> ~/.bashrc
-
-
Follow the
🐧 Running as service on linux
guide
-
Clone repo or download
config.json
andmodule_configs
andlangs
-
Edit the
config.json
, set options in thefiles
section to the path in the container (/app/config/<FILE_NAME>
) -
Run the container
docker run -d -e TELEGRAMUS_CONFIG_FILE="/app/config/config.json" -v <YOUR_CONFIG_FOLDER>:/app/config --name gpt-telegramus --restart on-failure ghcr.io/f33rni/gpt-telegramus:latest
If you want to try the preview version
docker run -d -e TELEGRAMUS_CONFIG_FILE="/app/config/config.json" -v <YOUR_CONFIG_FOLDER>:/app/config --name gpt-telegramus --restart on-failure ghcr.io/f33rni/gpt-telegramus:edge
-
Install Docker
-
Clone repo
-
Build container
docker buildx build -t telegramus --load -f Dockerfile .
-
Run the container
docker run -d --name gpt-telegramus --restart on-failure telegramus
or if you want to use a custom config
docker run -d -e TELEGRAMUS_CONFIG_FILE="/app/config/config.json" -v <YOUR_CONFIG_FOLDER>:/app/config --name gpt-telegramus --restart on-failure telegramus
- 🇺🇸 English
- 🇷🇺 Русский
- ☠️ Тофийсковый
- 🇮🇩 Bahasa Indonesia
- 🇨🇳 简体中文
- 🇧🇾 Беларуская
- 🇺🇦 Українська
- فارسی 🇮🇷
- 🇪🇸 Español
- 🇻🇳 Vietnamese
- 🇫🇷 Français
You can add a new language. For that:
- Copy any existing language file (inside
langs
directory) - Rename it according to
Set2/T
(3-letters code) ISO 639 https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes - Translate each entry
- Create a pull request 💜
You can add new lines by adding
\n
⚠️ Please make sure you haven't messed up the string formatting structure{this_type}
- 📄
/start
- Welcome message and bot version - ❓
/help
- Show help message ↕️ /module
- Change module to chat with- 🧹
/clear
- Clear chat history - 🌎
/lang
- Change the language - 🆔
/chatid
- Show your chat_id - ⚙️
/model
- Change model of module (Currently for 🔴 Groq module only) /style
- Bing AI conversation style/chat
- Send request in group chat- Other direct module commands (please check automatically-generated list of commands inside bot)
- 💬
/queue
- Show requests queue - 🔃
/restart [module name, optional]
- Restart specific module (and it's config) or every module and all configs, languages and bot commands- Please see
bot_command_restart
function inbot_handler.py
file for more info
- Please see
- 👤
/users
- Show list of all users - 🔨
/ban <id> [reason]
- Ban a user by their id with reason (optional) - 🔓
/unban <id>
- Unban a user by their id - 📢
/broadcast <message>
- Send text message to everyone except banned users
GPT-Telegramus has a built-in data collecting function (saves requests and responses in a files)
- For text requests / responses will be saved as plain text
- For image requests / responses will be saved as Base64-encoded image (in the same text file)
You can enable and configure data collection in config.json
in data_collecting
section
⚠️ Please make sure you notify your bot users that you're collecting data
- Paid version of ChatGPT
- DALL-E (from OpenAI)
- Some other LLMs (and maybe some free GPT-4 model)
- Anyone can contribute! Just create a pull request