Skip to content

Telegram bot for downloading media by youtube-dl

License

Notifications You must be signed in to change notification settings

dstar22/YtbDownBot

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

YtbDownBot

Telegram bot that utilize youtube-dl functionality for downloading video directly to telegram. Simple clone of https://t.me/VideoTubeBot.

Dependencies

Install ffmpeg and python3.

Python3 dependencies install via pip3 install -r requirements.txt

Running

For running required phone number for bypassing telegram bot api upload files limitation to 50 MB.

Set the following enviroment variables:

  1. Bot token(from Bot Father): BOT_API_TOKEN
  2. IBM Cloudant credentials: CLOUDANT_USERNAME, CLOUDANT_PASSWORD, CLOUDANT_URL (can be easily replaced with CouchDB: read https://python-cloudant.readthedocs.io/en/latest/getting_started.html)

Note: for deploying you must set also webhook url via calling https://api.telegram.org/bot<bot-token>/setWebhook?url=<webhook-url> (webhook-url path is bot_domanin+/bot like mybot.com/bot) Use master branch if you want to use polling instead.

About

Telegram bot for downloading media by youtube-dl

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 99.1%
  • Other 0.9%