<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Andrey Sobolev</title>
    <description>The latest articles on DEV Community by Andrey Sobolev (@andrey_sobolev).</description>
    <link>https://dev.to/andrey_sobolev</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3941650%2F8599d974-958b-49e3-a44d-aad8e4ffe4c6.png</url>
      <title>DEV Community: Andrey Sobolev</title>
      <link>https://dev.to/andrey_sobolev</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/andrey_sobolev"/>
    <language>en</language>
    <item>
      <title>I built a Telegram bot that downloads YouTube videos — here's how it works</title>
      <dc:creator>Andrey Sobolev</dc:creator>
      <pubDate>Wed, 20 May 2026 07:38:00 +0000</pubDate>
      <link>https://dev.to/andrey_sobolev/i-built-a-telegram-bot-that-downloads-youtube-videos-heres-how-it-works-1589</link>
      <guid>https://dev.to/andrey_sobolev/i-built-a-telegram-bot-that-downloads-youtube-videos-heres-how-it-works-1589</guid>
      <description>&lt;p&gt;Hey DEV community! 👋&lt;/p&gt;

&lt;p&gt;I've been building a Telegram bot called @AndyVideoBot that downloads YouTube videos and audio directly to Telegram chat. No browser extension, no website, no login required — just paste a link.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it does
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Video formats:&lt;/strong&gt; 144p · 240p · 360p · 480p · 720p · 1080p · 1440p · 4K&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Audio:&lt;/strong&gt; MP3 extraction&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Playlists&lt;/strong&gt; — download entire playlists&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;YouTube Shorts&lt;/strong&gt; — vertical video supported&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Channel subscriptions&lt;/strong&gt; — subscribe to a channel and get new uploads delivered automatically&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Dubbed audio selection&lt;/strong&gt; — choose language when multiple audio tracks are available&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Smart cache&lt;/strong&gt; — if someone already downloaded the same video at the same quality, instant delivery from cache (no re-downloading)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Inline mode&lt;/strong&gt; — share downloads directly in any Telegram chat&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Tech stack
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Python 3.14&lt;/strong&gt; (free-threaded, GIL disabled)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Telethon&lt;/strong&gt; — Telegram MTProto client&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;yt-dlp&lt;/strong&gt; — YouTube downloading engine&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;aiosqlite&lt;/strong&gt; — async SQLite&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Multi-bot architecture
&lt;/h2&gt;

&lt;p&gt;The bot supports running multiple instances simultaneously sharing a single database. Each instance handles its own download queue, and files are served from a shared Telegram-based cache — so if bot A downloaded a video, bot B delivers it instantly from cache.&lt;/p&gt;

&lt;h2&gt;
  
  
  12 languages
&lt;/h2&gt;

&lt;p&gt;English, Russian, German, Spanish, French, Portuguese, Turkish, Indonesian, Hindi, Vietnamese, Kazakh, Chinese.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;

&lt;p&gt;👉 &lt;a href="https://t.me/AndyVideoBot" rel="noopener noreferrer"&gt;https://t.me/AndyVideoBot&lt;/a&gt;&lt;/p&gt;

</description>
      <category>python</category>
      <category>telegram</category>
      <category>showdev</category>
      <category>programming</category>
    </item>
  </channel>
</rss>
