![]() |
---|
😔 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. Updates coming soon....
📄 Documentation is also under development! Consider reading docstring for now
🐛 If you find a bug in GPT-Telegramus, please create an Issue
💜 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
- 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
- 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 support
- Unfortunately, it can't accept images as input yet, nor can it generate them. Please use Microsoft Copilot Designer to generate images
- Supports conversation style
- Microsoft Copilot Designer
- 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
-
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
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 /style
- Bing AI conversation style- 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
- Official (and paid) ChatGPT API
- Official DALL-E API
- Microsoft Copilot as part of LMAO API
- Some free GPT-4 model
- Anyone can contribute! Just create a pull request