https://github.com/erickgnavar/tocinobot
Download videos using youyube-dl and receive them in telegram
https://github.com/erickgnavar/tocinobot
python telegram telethon youtube-dl
Last synced: about 1 month ago
JSON representation
Download videos using youyube-dl and receive them in telegram
- Host: GitHub
- URL: https://github.com/erickgnavar/tocinobot
- Owner: erickgnavar
- License: mit
- Created: 2020-04-17T04:27:58.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-12-06T01:25:57.000Z (almost 4 years ago)
- Last Synced: 2025-01-30T15:41:22.531Z (8 months ago)
- Topics: python, telegram, telethon, youtube-dl
- Language: Python
- Homepage:
- Size: 9.77 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.org
- License: LICENSE
Awesome Lists containing this project
README
* tocinobot
This is a bot that recieves an url from twitter, facebook, youtube, whatever and download the video from it. It was made because I was boring so it is very possible that it is useless for many people.
** Setup
A few environment variables are required to setup this bot:
|--------------------+------------------------+----------------------------------------------------------------|
| TELEGRAM_API_ID | api_id | You get it from https://core.telegram.org/api/obtaining_api_id |
| TELEGRAM_API_HASH | api_hash | You get it from https://core.telegram.org/api/obtaining_api_id |
| TELEGRAM_BOT_TOKEN | bot_token | You get it from @BotFather |
| SUPERADMIN | your telegram username | It is used to tell the bot to respond only to you |
|--------------------+------------------------+----------------------------------------------------------------|Create a virtualenv with at least python 3.6 and install the dependencies using =pip install -r requirements.txt=. Also you'll need =youtube-dl= this program is who actually makes the magic. Then you can run the bot using =python bot.py=.
** Commands
- =users=: list the allowed users who can use this bot
- =add {username}=: add a user to the allowed users list
- =remove {username}=: remove a user from the allowed users list
- =download {url}=: download the video from the given urlEnjoy, maybe. 🙃