This is a Python-based Telegram bot using the telethon library. The bot responds to messages using the evagpt4 reverse engeneered api from OpenGPT repo. This bot also supports plugins, roles, dan jailbreak and long term memory via vector database
Clone the repo
git clone https://github.com/HexyeDEV/Telegram-Chatbot-Gpt4Free.git
After that go to the cloned repo directory.
Edit the example.env file with:
API_ID is your api id from https://my.telegram.org
API_HASH is your api hash from https://my.telegram.org
BOT_TOKEN is your bot token from Bot Father
If you want to use WalframAlpha plugin, you will need to create an app at https://products.wolframalpha.com/api/ and set WOLFRAMALPHA_APP_ID in the example.env to the APP_ID of your Wolfram apllication.
After that, rename example.env into .env.
Install all the packages running pip install -r requirements.txt
(may change based on your python version, settings and os.)
Now run main.py with python3 main.py
(may change based on your python version, settings and os.)
Enjoy!
Commands:
/help - see a command list
/plugins toggle - enable/disable plugins
/plugins list - list all plugins
/jailbreak - list all jailbreaks
/jailbreak [JAILBREAK NAME] - enable a jailbreak
/newrole
/roles - list all the roles
/role
/role disable - disable roles
/memory - enable/disable memory
/addmemory - add something to the memory without receiving AI response.
This project is currently using reverse engineered bing from GPT4FREE
docker build -t telegram-chatbot .
docker run -p 80:80 telegram-chatbot
docker-compose up