Code Monkey home page Code Monkey logo

telegramytdlbot's Introduction

YouTube Downloader Bot

A Telegram Bot to Download YouTube Videos upto 4K under 2GB.

(Only for Educational Purposes)

Features

  • ✅ Fast Downloads
  • ✅ Choose video quality before download.
  • ✅ Downloading Queue for users.
  • ✅ Max video upload size : 2GB
  • ✅ Save server side resources.
  • ✅ No Developer side limits.

How to Deploy

1. Setup Environment Variables

  • Get your BOT_API_KEY from here.
  • Create .env file
  • Paste this code into your file and replace with your own values.
BOT_API_KEY = "9999999999:AAHePL8-xSzjOlnF5dRGiwhNyxxZsS3u7f4" # Replace with your own token
  • Save it!

2. Install Dependencies

git clone https://github.com/hansanaD/TelegramYTDLBot.git;
cd TelegramYTDLBot;
pip install -r requirements.txt;

3. Run api server locally (optional)

You can choose not to use this service.
But then you won't be able to upload files up to 2000 MB and get these features.

  • Generate your instructions from here. (This step might take upto 20 mins.)
  • Go to:
  • cd telegram-bot-api/bin
    
  • Get API ID & HASH from here. (Watch this Tutorial to get help.)
  • Start the server. (Remember to replace the values with your own values):
  • ./telegram-bot-api --api-id=XXXXX --api-hash=XXXXXXXXXXXX --http-port=8081 --local
    

Read the instructions on eternnoir/pyTelegramBotAPI and tdlib/telegram-bot-api for more information.

4. Run your bot

  • open a new "screen" or tab on your terminal.
  • run: python bot.py

both script & api server should run at the same time order to work.

Disclaimer

This repository is intended for educational and personal use only. The use of this repository for any commercial or illegal purposes is strictly prohibited. The repository owner does not endorse or encourage the downloading or sharing of copyrighted material without permission. The repository owner is not responsible for any misuse of the software or any legal consequences that may arise from such misuse

Sorry for my bad english and my messy documentation. 😶

telegramytdlbot's People

Contributors

hansanad avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.