https://github.com/victoriademina/chatgenie
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.
https://github.com/victoriademina/chatgenie
aiogram openai python telegram-bot
Last synced: 4 months ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/victoriademina/chatgenie
- Owner: victoriademina
- License: mit
- Created: 2023-03-30T15:12:12.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-10T05:05:26.000Z (about 1 year ago)
- Last Synced: 2025-01-08T11:37:12.738Z (5 months ago)
- Topics: aiogram, openai, python, telegram-bot
- Language: Python
- Homepage:
- Size: 33.2 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ChatGenie Telegram Bot
## Introduction
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.## Prerequisites
- python3
- venv
- aiogram## Installation
1. Clone the repository using Git:
`git clone [email protected]:victoriademina/ChatGenie.git`
2. Navigate to the project directory:
`cd ChatGenie`
3. Create a virtual environment for the project:
`python3 -m venv venv`
4. Activate the virtual environment:
`source venv/bin/activate`
5. Install the required Python packages using pip:
`pip3 install -r requirements.txt`
6. Set up the environment variables for the Telegram bot token and the OpenAI API key:
```
export API_TOKEN=
export OPENAI_API_KEY=
```
7. Run the bot using the `python3 main.py` command.## Usage
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.## License
This project is licensed under the MIT License.
See the `LICENSE` file for details.## Acknowledgements
This project was built using the following libraries and APIs:- aiogram (https://github.com/aiogram/aiogram)
- OpenAI (https://openai.com/)