Simple telegram bot for separating audio from video. You can use native telegram video, video-notes, video files or youtube / supported sites (https://github.com/yt-dlp/yt-dlp/blob/master/supportedsites.md) links.
It is using https://github.com/yt-dlp/yt-dlp for youtube links downloading function and moviepy pypi-pkg for native telegram video messages.
- ???
ffmepg
install ??? DO WE NEED THIS ??? (#TODO: chek it on server) - (OPTIONAL) Use a virtual enviroment for this script
- Install python packeges
pip3 install -r requirements.txt
- Add TOKEN enviroment variable for Telegram bot with
@botfather
(create.env
file for that in the project root) - FUTURE (TODO for yt-dlp) Add PROXY enviroment variable for youtube "home-ip-safe" downloading (optional)
python3 bot.py
- make "local" (from telegram msgs) video-msgs decoupling
- make "local" (from telegram msgs) video-circles decoupling
- make "local" (from telegram msgs) video-files decoupling
- delete all files after sending audio back (or set this in settings what/how to do/be?)
- check all modern youtube-links are working (with regexp)
- Add PROXY support for youtube downloading
- make all work with ASYNC functions or in TASK-Manager like celery (+redis for msg transport)
- test with some free proxy?
- ... what next?
Write me on telegram @tatradev
Have a good time ^-.-^