This is a Telegram bot that can download audio from YouTube videos and summarize the content using OpenAI's GPT-3 engine. It's a handy tool for quickly extracting insights from YouTube content.
Before using the bot, make sure you have the following prerequisites:
You can install the required Python libraries by running:
pip install -r requirements.txtClone this repository to your local machine.
Set up your OpenAI API key by replacing 'YOUR_OPENAI_API_KEY' in the code with your actual API key.
Create a bot on Telegram and get your TELEGRAM_API_KEY. You can follow the Telegram BotFather guide to create a bot and obtain the API key.
Set your TELEGRAM_API_KEY by replacing 'YOUR_TELEGRAM_API_KEY' in the code with your actual API key.
Run the bot:
python Yts full.pyYou can customize the bot's behavior by modifying the code. For example, you can adjust the summarization length by changing the max_tokens in the openaiHandler function.
This project is licensed under the MIT License. See the LICENSE file for details.