teletubemp3 is a Telegram Bot which converts YouTube video(s) to mp3 and send directly to your Telegram.
- It takes your command (
yt videoname
) - Uses
videoname
as a keyword to search in YouTube - Takes the first link from YouTube
- Download that video using youtube_dl library
- Converts it into mp3 using youtube_dl
- Sends it to your chatbox
git clone https://github.com/thezawad/teletubemp3.git
cd teletubemp3
pip install telepot
pip install urllib2
pip install requests
pip install bs4
pip install youtube_dl
brew install youtube-dl
brew install ffmpeg
Now create a file api.txt and put your api-key
While in the directly, run
python ytgr.py
You'll see
[+] Server is Listenining [+]
[=] Type Command from Telegram [=]
In your Telegram message box. Text
yt videoname
The Bot will find out the video from YouTube, converts it and send it to your Telegram.