Skip to content

simon387/TGDownloaderBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TGDownloaderBot

Telegram Downloader Bot

It downloads video from:

  • youtube
  • facebook
  • instagram
  • tiktok
  • twitter

Theoretically, it could download videos from any webpage, but for now, it only downloads from the above list

Dev's Setup

If you want to use the jDownloader2 integration function, you have to set up the remote control!

  • pip install python-telegram-bot --upgrade or pip install python-telegram-bot -U --pre
  • pip install python-telegram-bot[rate-limiter]
  • pip install validators
  • pip install -U yt-dlp
  • pip install you-get
  • pip install myjdapi
  • dnf install ffmpeg
  • Create the config.properties file in the project's directory, and put this content:
[secrets]
telegram.token=XXX
telegram.group.id=-ZZZ
telegram.developer.chat.id=WWW
[application]
# log.level = info | debug | error
restart.flag=false
log.level=info
send.start.and.stop.message=false
send.error.to.dev=true
send.error.to.user=false
# 1.1 | 2
http.version=1.1
ftp.host=
ftp.url=
ftp.user=
ftp.pass=
ftp.remote.folder=
youtube.user=
youtube.pass=
cookies.path=chrome:~/.config/google-chrome
jdownloader.download.path=
jdownloader.user=
jdownloader.pass=
jdownloader.device.name=

On gnu/linux, cutting-edge version

  • python3 -m pip install -U pip setuptools wheel
  • python3 -m pip install --force-reinstall https://github.com/yt-dlp/yt-dlp/archive/master.tar.gz
  • python3 -m pip install -U yt-dlp

Setup BotFather

  1. /setcommands
  2. @TG_DownloaderBot
  3. Copy and paste this:
version - show bot's version
download - download a video from an url
shutdown - shutdown the bot

jDownloader2 setup example

On linux, do not run it from package manager, it's better from normal setup

image info image info image info

BotFather creation's infos

Done! Congratulations on your new bot. You will find it at t.me/TG_DownloaderBot. You can now add a description, about section and profile picture for your bot, see /help for a list of commands. By the way, when you've finished creating your cool bot, ping our Bot Support if you want a better username for it. Make sure the bot is fully operational before you do this.

Use this token to access the HTTP API: XXX Keep your token secure and store it safely, it can be used by anyone to control your bot.

For a description of the Bot API, see this page: https://core.telegram.org/bots/api

TODOs

Links

About

Telegram Downloader Bot

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages