Download videos from Youtube and other platforms through a Telegram Bot
Find a file
Benny d472cdc03c
WIP: refactor (#460)
* step1

* remove

* add pdm

* going

* going

* going

* Improved `extract_code_from_instagram_url` function

* Remove terabox download function

Due to server-side restrictions, the Terabox download function is currently does not work as intended.

* Remove unused `parse_cookie_file` function

This commit removes the `parse_cookie_file` function as it is no longer required following the removal of the Terabox download function.

* define abstract class

* basic upload done?

* db operation

* db operation

* db operation

* db operation

* db operation

* fix name_pattern regex of `extract_url_and_name` function

* pre-commit

* pre-push

* pre-push

* Refactor: Change single quotes to double quotes for name_pattern regex

* add more methods

* rename

* use self._bot_msg

* download done?

* update deps

* add entrance

* runnable

* fixes

* fix

* record usage fix

* add cookies

* fix settings

* hint

* hint

* reset

* rename

* formats fix

* update README.md

* update

* rename

* rename

---------

Co-authored-by: Sanuja Seneviratne <66342986+SanujaNS@users.noreply.github.com>
2025-01-14 19:32:19 +01:00
.github Upgrade to CodeQL Action v3 (#470) 2024-12-17 09:46:20 +01:00
assets WIP: refactor (#460) 2025-01-14 19:32:19 +01:00
src WIP: refactor (#460) 2025-01-14 19:32:19 +01:00
.dockerignore let's try pyrogram 2.x again 2023-12-17 14:11:19 +01:00
.env.example WIP: refactor (#460) 2025-01-14 19:32:19 +01:00
.gitignore WIP: refactor (#460) 2025-01-14 19:32:19 +01:00
docker-compose.yml WIP: refactor (#460) 2025-01-14 19:32:19 +01:00
Dockerfile WIP: refactor (#460) 2025-01-14 19:32:19 +01:00
LICENSE Initial commit 2021-05-03 18:24:44 +08:00
pdm.lock WIP: refactor (#460) 2025-01-14 19:32:19 +01:00
pre-push.py WIP: refactor (#460) 2025-01-14 19:32:19 +01:00
pyproject.toml WIP: refactor (#460) 2025-01-14 19:32:19 +01:00
README.md WIP: refactor (#460) 2025-01-14 19:32:19 +01:00
requirements.txt WIP: refactor (#460) 2025-01-14 19:32:19 +01:00

ytdlbot

docker image

YouTube Download Bot🚀🎬⬇️ 🧰Refactor ongoing🧰

This Telegram bot allows you to download videos from YouTube and other supported websites.

Usage

Just send a link directly to the bot.

Supported websites

  • YouTube 😅

  • Any websites supported by yt-dlp

    • Instagram (Videos, Photos, Reels, IGTV & carousel)
    • Pixeldrain
    • KrakenFiles
    • Terabox (file/folders) (you need to add cookies txt in ytdlbot folder with name) terabox.txt.

Features

  1. fast download and upload.
  2. No ads
  3. download & upload progress bar
  4. download quality selection
  5. upload format: file, video, audio
  6. cache mechanism - download once for the same video.
  7. Supports multiple download engines (yt-dlp, aria2, requests).

Limitations

Due to limitations on servers and bandwidth, there are some restrictions on this free service.

  • Each user is limited to 3 free downloads every day.

Screenshots

Normal download

Instagram download

How to deploy?

This bot can be deployed on any platform that supports Python.

Run natively on your machine

  • use pdm
  • pdm install
  • copy .env.example to .env
  • python main.py

Docker

One line command to run the bot

docker run -e APP_ID=111 -e APP_HASH=111 -e TOKEN=370FXI bennythink/ytdlbot

Complete deployment guide for docker-compose

Command

start - Let's start
about - What's this bot?
help - Help
spdl - Use to download specific link downloader links
ytdl - Download video in group
aria2 - Download file using aria2
settings - Set your preference
unsub - Unsubscribe from YouTube Channel
ping - Ping the Bot

Test data

Tap to expand

Test video

https://www.youtube.com/watch?v=V3RtA-1b_2E

Test Playlist

https://www.youtube.com/playlist?list=PL1Hdq7xjQCJxQnGc05gS4wzHWccvEJy0w

Test twitter

https://twitter.com/nitori_sayaka/status/1526199729864200192 https://twitter.com/BennyThinks/status/1475836588542341124

Test instagram

Test Pixeldrain

https://pixeldrain.com/u/765ijw9i

Test KrakenFiles

https://krakenfiles.com/view/oqmSTF0T5t/file.html

Test TeraBox

https://terabox.com/s/1mpgNshrZVl6KuH717Hs23Q

Donation

Found this bot useful? You can donate to support the development of this bot.

Donation Platforms

Stripe

You can choose to donate via Stripe.

USD(Card, Apple Pay and Google Pay) CNY(Card, Apple Pay, Google Pay and Alipay)
USD CNY

Cryptocurrency

TRX or USDT(TRC20)

TF9peZjC2FYjU4xNMPg3uP4caYLJxtXeJS

License

Apache License 2.0