Skip to content

thezawad/teletubemp3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A Telegram Bot for YouTube to mp3 to Telegram

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages