Skip to content

Latest commit

 

History

History
46 lines (35 loc) · 1.1 KB

README.md

File metadata and controls

46 lines (35 loc) · 1.1 KB

teletubemp3 - A Telegram Bot

teletubemp3 is a Telegram Bot which converts YouTube video(s) to mp3 and send directly to your Telegram.

yt despacito

How does it work?

  • 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

Installation

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

Run

While in the directly, run

python ytgr.py

You'll see

[+] Server is Listenining [+]
[=] Type Command from Telegram [=]

Usage

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.