Note Added API-GPT-4 support. To use the bot without using gpt-4, change gpt-4 in the file to gpt-3.5-turbo
ChatGPT is a Telegram bot that utilizes OpenAI's GPT-4 language model to generate human-like responses to user messages. The bot can be used for casual conversations, brainstorming ideas, or even for educational purposes.
The bot offline
To use the ChatGPT bot, you will need to have a Telegram account and an OpenAI API key. You can obtain an API key by signing up for OpenAI's GPT-4 program.
Once you have your API key, you can download the source code for the bot and install the required dependencies using the following commands:
git clone https://github.com/Tr3bleee/ChatGPT.git
cd ChatGPT
pip install -r requirements.txt
Before running the bot, you will need to update the bot_token and api_key variables in the main.py file with your own Telegram bot token and OpenAI API key, respectively.
To start the ChatGPT bot, run the following command:
python main.py
Once the bot is running, you can interact with it by sending messages to its Telegram account. The bot will respond to your messages with human-like responses generated by the GPT-4 model.
The bot currently supports the following commands:
/start: Initializes the bot and starts a new conversation thread.
/newtopic: Starts a new topic of conversation in the current conversation thread.
/image: Generate image with support DALL-E
/about: About bot
/help: Show commands
If you would like to contribute to the ChatGPT project, please submit a pull request with your proposed changes. We welcome contributions of all kinds, including bug fixes, new features, and improvements to the documentation.
The ChatGPT project is licensed under the MIT License. See the LICENSE file for more information.