Skip to content

RafaelPil/YT-MP3-Gemini-Bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Telegram YouTube to MP3 Bot with Gemini AI

A Rust-based Telegram bot that converts YouTube videos to MP3 and provides AI responses using Google's Gemini.


Website Preview


Features

  • 🎵 Convert YouTube videos to MP3
  • 🤖 AI-powered responses using Gemini 2.0 Flash
  • ⚡ Fast conversion via RapidAPI
  • 🔒 Secure file handling with temporary storage
  • 🔄 Real-time status updates

Prerequisites


Installation and Running

1. Clone the Repository:

git clone https://github.com/RafaelPil/YT-MP3-Gemini-Bot.git
cd telegram-mp3-bot

2. Configure Environment Variables:

TELOXIDE_TOKEN=your_telegram_bot_token
RAPIDAPI_KEY=your_rapidapi_key
RAPIDAPI_USER=your_rapidapi_username
GEMINI_API_KEY=your_gemini_api_key

3. Build and Run:

cargo build --release
cargo run

🚧 Future Improvements


Troubleshooting:

  • 404 Errors: Verify your RapidAPI credentials
  • Conversion Failures: Check your API quota
  • Bot Not Responding: Validate all environment variables

Support:

  • For issues, please open an issue.

Note:

  • This project is for educational purposes only.

Contributors

Languages