An open API service indexing awesome lists of open source software.

https://github.com/chiragbadhe/chatgpt-telegram-bot

A ChatGPT Telegram bot that provides conversational AI services, powered by OpenAI.
https://github.com/chiragbadhe/chatgpt-telegram-bot

bot telegram telegram-bot

Last synced: 9 months ago
JSON representation

A ChatGPT Telegram bot that provides conversational AI services, powered by OpenAI.

Awesome Lists containing this project

README

          

# ChatGPT Telegram Bot

A ChatGPT Telegram bot that provides conversational AI services, powered by OpenAI.

## Features
- Uses OpenAI's GPT-3 model to generate human-like responses
- Easy to integrate with Telegram using the Python Telegram Bot API
- Customizable code for different use cases

## Getting Started

### Prerequisites
- Python 3.x
- OpenAI API Key
- Telegram Bot API Key

### Installation
Clone the repository:
git clone https://github.com/chiragbadhe/ChatGPT-Telegram-Bot.git

Navigate to the repository:
cd ChatGPT-Telegram-Bot

Install the required packages:
pip install -r requirements.txt

Create a `.env` file in the root directory of the project and add the following environment variables:
TELEGRAM_BOT_TOKEN=
OPENAI_API_KEY=

### Usage
Run the bot:
`python bot.py`

python
Copy code
2. Start chatting with the bot on Telegram!

## Contributing

Contributions are welcome! Please feel free to submit a pull request or open an issue.