A simple powerful Telegram bot that engages users in interactive conversations using OpenAI's ChatGPT language model.
- Interactive Conversations: Engage in natural language conversations with the bot.
- Menu Commands:
/start: Display a welcome message and menu./help: Provide information about the bot./restart: Restart the conversation.
-
Telegram Bot Token: Obtain a Telegram Bot Token from BotFather.
-
OpenAI API Key: Get an API key from the OpenAI Platform.
-
config.jsonfile in the project directory:{ "TELEGRAM_BOT_TOKEN": "your_telegram_bot_token_here", "OPENAI_API_KEY": "your_openai_api_key_here" }Replace placeholder values with your actual Telegram bot token and OpenAI API key.
-
Clone the repository:
git clone https://github.com/H-crowe/Telegram-ChatGPT.git cd Telegram-ChatGPT -
Install dependencies:
pip install -r requirements.txt
-
Run the bot:
python bot.py
-
Interact with the bot on Telegram.
Feel free to customize the bot by adding features, improving conversation handling, or enhancing error messages. The code is designed to be extensible and adaptable to your specific needs.
Contact If you have questions or need assistance, feel free to contact Telegram @cr0wel .
