A simple Telegram bot that leverages GPT-4 to provide conversational AI capabilities. This bot allows users to interact with the GPT-4 model directly through a Telegram chat interface.
Before you begin, make sure you have the following:
Follow these steps to set up the project locally:
Clone the repository:
git clone https://github.com/hosseingz/IntelliBot.git
Set up a virtual environment (recommended):
python3 -m venv .venv
source .venv/bin/activate # On Windows, use `.venv\Scripts\activate`
Install the required dependencies:
pip install -r requirements.txt
Set up your environment variables:
.env
file in the project root directory:
touch .env
.env
file:
api_key="set_your_apikey_here"
Run the bot:
python main.py
main.py
: The main script that runs the Telegram bot..env
: Environment file for storing the API key (not included in version control for security)..gitignore
: Specifies files and directories to be ignored by Git..env
file..env
to your .gitignore
to prevent it from being tracked by Git.Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License. See the LICENSE
file for details.