A Telegram bot for downloading videos from various different sites like YouTube, Reddit and others. It uses yt-dlp
as a backend.
⚠️ This is beta software. Some features might not work properly.
- Create a Telegram bot using @BotFather.
- Rename
.cargo/config.toml.example
toconfig.toml
. - In this file, you need to fill in your bot token and the ID of your Telegram account, so the bot can allow you to use certain admin-only commands and bypass some restrictions.
Example:
[env] BOT_TOKEN = "1234567890:ABCDEFGHIJKLMNOPQRSTUVXYZ" OWNER_ID = "0123456789" STORAGE_FILE = "~/tgdlstorage"
- (Optional) Change the location of the storage file (
STORAGE_FILE
) if needed. - Build and run the bot.
Just send a link to the bot and it will begin downloading. Commands can only be used by the owner of the bot.