Skip to content

y9tr3ble/ChatGPT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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: Telegram Bot powered by OpenAI GPT-4

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.

Bot

The bot offline

Telegram:

Installation

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

Configuration

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.

Usage

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

Interface

imageimage

Contributing

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.

License

The ChatGPT project is licensed under the MIT License. See the LICENSE file for more information.