HexyeDEV / Telegram-Chatbot-Gpt4Free

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Telegram-Chatbot-Gpt4Free

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

Installation

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 - create a new role

/roles - list all the roles

/role - enable a role

/role disable - disable roles

/memory - enable/disable memory

/addmemory - add something to the memory without receiving AI response.

Provider Used

This project is currently using reverse engineered bing from GPT4FREE

Running the Application in a Docker Container

  1. Build the Docker image using the command docker build -t telegram-chatbot .
  2. Run the Docker container using the command docker run -p 80:80 telegram-chatbot
  3. Alternatively, use Docker Compose to build and run the Docker container using the command docker-compose up

About

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

License:MIT License


Languages

Language:Python 98.6%Language:Dockerfile 1.4%