<?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: Andrii Sheptytskyi</title>
    <description>The latest articles on DEV Community by Andrii Sheptytskyi (@shellzy).</description>
    <link>https://dev.to/shellzy</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%2F3804849%2F87071638-6c83-4948-b314-e4b0d8ba8931.png</url>
      <title>DEV Community: Andrii Sheptytskyi</title>
      <link>https://dev.to/shellzy</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/shellzy"/>
    <language>en</language>
    <item>
      <title>I Got Tired of Manually Managing My Paid Telegram Channel, So I Built a Bot</title>
      <dc:creator>Andrii Sheptytskyi</dc:creator>
      <pubDate>Wed, 04 Mar 2026 01:20:30 +0000</pubDate>
      <link>https://dev.to/shellzy/i-got-tired-of-manually-managing-my-paid-telegram-channel-so-i-built-a-bot-4leg</link>
      <guid>https://dev.to/shellzy/i-got-tired-of-manually-managing-my-paid-telegram-channel-so-i-built-a-bot-4leg</guid>
      <description>&lt;p&gt;Last month I was spending hours every week doing the same boring tasks: checking who paid, generating invite links, removing people whose subscriptions expired. Classic manual work that screams "automate me."&lt;/p&gt;

&lt;p&gt;So I did.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Problem
&lt;/h2&gt;

&lt;p&gt;Running a paid Telegram channel sounds easy until you actually do it. Here's what my daily routine looked like:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Someone pays → I manually check → I manually create an invite link → I send it&lt;/li&gt;
&lt;li&gt;Someone's subscription expires → I manually check a spreadsheet → I manually kick them&lt;/li&gt;
&lt;li&gt;Someone asks "did my payment go through?" → I dig through payment history&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Multiply this by 50+ subscribers and you've got yourself a part-time job you didn't sign up for.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I Built
&lt;/h2&gt;

&lt;p&gt;A Python bot that handles everything automatically. User pays with Telegram Stars → bot verifies → bot sends invite link → done. No human needed.&lt;/p&gt;

&lt;p&gt;When subscription expires, the bot kicks them. When it's about to expire, the bot sends a reminder. When someone uses a referral link, both people get bonus days.&lt;/p&gt;

&lt;p&gt;The whole thing runs on a $5 VPS and I haven't touched it in weeks.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Technical Stuff
&lt;/h2&gt;

&lt;p&gt;I used aiogram 3 because it's async and doesn't suck. SQLite for storage because I'm not running a bank here. Telegram Stars for payments because it's built into Telegram and I don't need to deal with Stripe integration.&lt;/p&gt;

&lt;p&gt;The bot structure is dead simple:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;bot.py&lt;/code&gt; — handles messages and payments&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;database.py&lt;/code&gt; — stores users, subscriptions, payments&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;config.py&lt;/code&gt; — prices, messages, tokens&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A background task runs every hour to check for expired subscriptions and kick people. Another one sends reminders before expiry.&lt;/p&gt;

&lt;h2&gt;
  
  
  Features That Actually Matter
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Telegram Stars payment&lt;/strong&gt; — Users buy Stars in the app, pay your bot. You get the money. No third-party processors, no KYC headaches.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Auto invite links&lt;/strong&gt; — After payment, bot creates a one-time invite link. User clicks, they're in. Link expires after use.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Auto-kick&lt;/strong&gt; — Subscription ends, user gets removed. No awkward manual removals.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Referral system&lt;/strong&gt; — Users share their link, get bonus days when friends sign up. Free marketing.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Promo codes&lt;/strong&gt; — Create discount codes for launches, holidays, whatever.&lt;/p&gt;

&lt;h2&gt;
  
  
  Was It Worth It?
&lt;/h2&gt;

&lt;p&gt;I spent a weekend building this. It now saves me several hours every week and runs completely hands-off. So yeah, worth it.&lt;/p&gt;

&lt;p&gt;If you're running a paid channel and still doing things manually — stop. Automate it or you'll burn out.&lt;/p&gt;




&lt;p&gt;I packaged this into a ready-to-deploy solution. Full source code, documentation, everything you need to get it running.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;a href="https://www.fiverr.com/s/7YVD8Yx" rel="noopener noreferrer"&gt;Get it here&lt;/a&gt;&lt;/strong&gt; if you want to skip the building part.&lt;/p&gt;

</description>
      <category>telegram</category>
      <category>python</category>
      <category>bot</category>
      <category>tutorial</category>
    </item>
  </channel>
</rss>
