https://github.com/devhanza/telegramytdlbot
Telegram YouTube Downloader Bot (Educational Purposes Only)
https://github.com/devhanza/telegramytdlbot
downloader python pythonbot telebot telegram telegrambotapi telgram-bot youtube
Last synced: about 1 month ago
JSON representation
Telegram YouTube Downloader Bot (Educational Purposes Only)
- Host: GitHub
- URL: https://github.com/devhanza/telegramytdlbot
- Owner: DevHanza
- Created: 2024-02-04T11:12:22.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-08-23T06:37:20.000Z (9 months ago)
- Last Synced: 2024-09-08T15:05:41.427Z (9 months ago)
- Topics: downloader, python, pythonbot, telebot, telegram, telegrambotapi, telgram-bot, youtube
- Language: Python
- Homepage:
- Size: 104 KB
- Stars: 15
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
#
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](https://core.telegram.org/bots/tutorial#obtain-your-bot-token) 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](https://core.telegram.org/bots/api#using-a-local-bot-api-server).- Generate your instructions from [here](https://tdlib.github.io/telegram-bot-api/build.html). _(This step might take upto 20 mins.)_
- Go to:
- ```
cd telegram-bot-api/bin
```
- Get API ID & HASH from [here](https://core.telegram.org/api/obtaining_api_id). (Watch this [Tutorial](https://www.youtube.com/watch?v=8naENmP3rg4) 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](https://github.com/eternnoir/pyTelegramBotAPI/#using-local-bot-api-sever) and [tdlib/telegram-bot-api](https://github.com/tdlib/telegram-bot-api) for more information.
#
### 4. Run your bot
- open a new "[screen](https://www.geeksforgeeks.org/screen-command-in-linux-with-examples/)" 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- **APIs : [y2mate-api](https://github.com/Simatwa/y2mate-api/) , [pytelegramBotAPI](https://github.com/eternnoir/pyTelegramBotAPI/)**
- **Contact for issues : [@dev00111](https://t.me/dev00111)**
#
_Sorry for my bad english and my messy documentation. 😶_