Telegram Downloader Bot
It downloads video from:
- youtube
- tiktok
Theoretically, it could download videos from any webpage, but for now, it only downloads from the above list
pip install python-telegram-bot --upgrade
orpip install python-telegram-bot -U --pre
pip install python-telegram-bot[rate-limiter]
pip install validators
pip install -U yt-dlp
sudo 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
log.level=info
send.start.and.stop.message=false
send.error.to.dev=true
# 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
/setcommands
@TG_DownloaderBot
- Copy paste this:
version - show bot's version
download - download a video from an url
shutdown - shutdown the bot
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. Just 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
download from youtube video/mp3download from facebookdownload from instagramdownload from tiktokhttps://youtube.com/shorts/rb4LEDH9EB8?feature=share timeout (custom ftp)https://fb.watch/kafb9dYydS/fb login yt-dlp/yt-dlp#2140- https://youtu.be/7QiPGNmWZj8 18+, yt login