Skip to content

glospotnew/BotTeleYt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 

Repository files navigation

Telegram bot to download audio and video from youtube

Using the python API this BOT will download a video or audio of the link that is sent to the bot, if the file size is less than 50MB, the bot will send it to you.

Note:

The code is not longer working, due to an issue with pytube. Waiting for an update

Install requirements:

sudo apt install ffmpeg

pip install pytube

Instrucions:

Create a new telegram bot https://telegram.me/BotFather

Choose a name for your bot and copy the "token"

Paste the token in the line 146 of the "telegram-pytube", for example:

base_url = 'https://api.telegram.org/bot270485614:AAHfiqksKZ8WmR2zSjiQ7_v4TMAKdiHm9T0'

Run the script:

python telegram-pytube.py

Add the bot and send a youtube link, the bot will answer asking the desired format or resolution.

If the audio or video file size is less than 50MB (telegram api limitation) it will be send to you.

video.mp4

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages