Back to Projects

YouTube Downloader Telegram Bot

A Python Telegram bot that downloads YouTube videos or extracts audio directly from simple chat commands using yt-dlp.

Backend · Automation
Python Developer
YouTube Downloader Telegram Bot automation workflow preview

About this Project

This project provides a Telegram bot interface for downloading YouTube content. Users send a YouTube link to the bot and receive either the full video or an audio-only file back in the chat.

The bot is built with python-telegram-bot and yt-dlp, and is designed to be simple to deploy and easy to extend. Downloaded media is kept in an organised folder before being delivered back to the user, and the bot token is supplied through an environment variable rather than hard-coded.

Key Features

/start command with welcome message and usage
/video command to download and send a video
/audio command to extract and send audio
Simple command-based interaction inside Telegram
Organised downloads folder for saved files
Bot token supplied through an environment variable

Key Achievements

1

Built a working Telegram bot with python-telegram-bot, handling commands and file delivery.

2

Integrated yt-dlp to reliably download video and audio streams from user-supplied links.

3

Handled user input validation and managed downloaded media files on the server.