This is a Telegram bot powered by OpenAI's ChatGPT and designed to provide text and audio-based interactions. It can transcribe voice messages and respond to text messages.
Before you can run this bot, you'll need the following:
- .NET Core SDK
- Telegram Bot API Token
- OpenAI API Key
-
Clone the repository:
git clone https://github.com/wntmorder/ChatGPT-Bot.git
-
Navigate to the project directory:
cd ChatGPT-Bot
-
Create an appsettings.json file and add your Telegram Bot API Token and OpenAI API Key:
{ "TelegramApiKey": "YOUR_TELEGRAM_API_KEY", "GptApiKey": "YOUR_OPENAI_API_KEY" }
-
Build and run the bot:
dotnet run
- Start a chat with your bot on Telegram.
- Send text messages to chat with ChatGPT.
- Send voice messages, and the bot will transcribe and respond with text
You can configure the bot by modifying the appsettings.json file. Make sure to specify your Telegram API Key and OpenAI API Key in this file. You can also explore the library OpenAI-DotNet and add new functionality (e.g. photo processing).
If you'd like to improve or extend the functionality of this bot, feel free to open issues or submit pull requests.
This project is licensed under the MIT License.