ChatGenie is an AI-powered Telegram bot built using Python and the aiogram library. It uses the OpenAI ChatGPT API to generate responses to user messages in natural language.
- python3
- venv
- aiogram
- Clone the repository using Git:
git clone git@github.com:victoriademina/ChatGenie.git
- Navigate to the project directory:
cd ChatGenie
- Create a virtual environment for the project:
python3 -m venv venv
- Activate the virtual environment:
source venv/bin/activate
- Install the required Python packages using pip:
pip3 install -r requirements.txt
- Set up the environment variables for the Telegram bot token and the OpenAI API key:
export API_TOKEN=<your-telegram-bot-token>
export OPENAI_API_KEY=<your-openai-api-key>
- Run the bot using the
python3 main.py
command.
To use ChatGenie, simply add the bot to your Telegram account and start chatting with it. You can send any message or question to the bot, and it will generate a response using the ChatGPT API.
This project is licensed under the MIT License.
See the LICENSE
file for details.
This project was built using the following libraries and APIs:
- aiogram (https://github.com/aiogram/aiogram)
- OpenAI (https://openai.com/)