First, you need to make your own local telegram bot server. link
Then download the bot and its dependencies:
git clone https://github.com/qwerty2053/youtube_downloader_bot.git
cd youtube_downloader_bot
pip install -r requirements.txt
sudo apt install ffmpeg
After that, you have to run your local telegram bot server and in the other terminal tab run the bot:
python3 pytube_robot.py