sneedcat / gpt4tg

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

gpt4tg

This is a fork of Telegram-Chatbot-Gpt4Free, with a few changes.

  • Backported some changes from g4f
  • Removed plugins
  • Added tones
  • Added allowed ids
  • Keeps a track of chosen roles and tones per chat

If you want to support the original creator, then go donate to HexyeDEV.

Installation

Clone the repo

git clone https://github.com/sneedcat/gpt4tg

After that go to the cloned repo directory.

Rename the config.example.json file to config.json and complete with:

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

  • /roles - list all the roles

  • /role - enable a role

  • /tone (can be creative, precise or balanced)

  • /gpt - Retrieves the response from bing gpt4

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.2%Language:Dockerfile 1.8%