hosseingz / IntelliBot

A simple Telegram bot project that processes user messages using AI and returns responses.
MIT License
0 stars 0 forks source link
ai chatgpt python telegram-bot

GPT-4 Telegram Bot 🤖💬

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.

Features ✨

Prerequisites 📋

Before you begin, make sure you have the following:

Getting Started 🚀

Follow these steps to set up the project locally:

  1. Clone the repository:

    git clone https://github.com/hosseingz/IntelliBot.git
  2. Set up a virtual environment (recommended):

    python3 -m venv .venv
    source .venv/bin/activate  # On Windows, use `.venv\Scripts\activate`
  3. Install the required dependencies:

    pip install -r requirements.txt
  4. Set up your environment variables:

    • Create a .env file in the project root directory:
      touch .env
    • Add your API key to the .env file:
      api_key="set_your_apikey_here"
  5. Run the bot:

    python main.py

Usage 📝

  1. Start a chat with your bot on Telegram by searching for its username.
  2. Send a message to the bot, and it will respond using GPT-4.
  3. If there are any server issues, the bot will notify you to try again.

Project Structure 🗂️

Security Considerations 🔒

Contributing 🤝

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the project.
  2. Create a new branch for your feature or bugfix.
  3. Submit a Pull Request for review.

License 📜

This project is licensed under the MIT License. See the LICENSE file for details.