<?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: deniskoblya</title>
    <description>The latest articles on DEV Community by deniskoblya (@deniskoblya).</description>
    <link>https://dev.to/deniskoblya</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%2F677013%2Fe87ab815-0f2d-4cad-a85e-5e87766be72e.png</url>
      <title>DEV Community: deniskoblya</title>
      <link>https://dev.to/deniskoblya</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/deniskoblya"/>
    <language>en</language>
    <item>
      <title>How I Built a Telegram Channel Management Platform</title>
      <dc:creator>deniskoblya</dc:creator>
      <pubDate>Sun, 15 Mar 2026 19:10:34 +0000</pubDate>
      <link>https://dev.to/deniskoblya/how-i-built-a-telegram-channel-management-platform-27c7</link>
      <guid>https://dev.to/deniskoblya/how-i-built-a-telegram-channel-management-platform-27c7</guid>
      <description>&lt;p&gt;Last year, I got pretty fed up. I was juggling five different tools just to manage my Telegram channels. Imagine: scheduling posts in one app, checking analytics in another, and generating AI content in a third. It was a mess. So, I decided to do something about it. I built &lt;a href="https://tgadm.in" rel="noopener noreferrer"&gt;TGADM.IN&lt;/a&gt; – one single dashboard that handles absolutely everything.&lt;/p&gt;

&lt;p&gt;Here’s what I learned along the way.&lt;/p&gt;

&lt;h2&gt;
  
  
  the problem
&lt;/h2&gt;

&lt;p&gt;If you run a Telegram channel (or several), you know the struggle is real.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  Scheduling posts often means dealing with clunky bots that have truly terrible user experiences.&lt;/li&gt;
&lt;li&gt;  Want analytics? Get ready to scrape data yourself or shell out cash for expensive third-party tools.&lt;/li&gt;
&lt;li&gt;  Creating content? That's a manual, repetitive grind.&lt;/li&gt;
&lt;li&gt;  And managing multiple channels from one central place? Forget about it. It just wasn't happening.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I wanted something like &lt;strong&gt;Buffer&lt;/strong&gt; or &lt;strong&gt;Hootsuite&lt;/strong&gt;, but specifically designed for Telegram. Nothing decent existed for the Ukrainian market, so I took matters into my own hands and built it.&lt;/p&gt;

&lt;h2&gt;
  
  
  tech stack
&lt;/h2&gt;

&lt;p&gt;We kept the technology pretty focused:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  The frontend uses &lt;strong&gt;React&lt;/strong&gt;, TypeScript, and &lt;strong&gt;Vite&lt;/strong&gt;. A fast, modern combo.&lt;/li&gt;
&lt;li&gt;  For the UI, we crafted custom components with Less, opting out of any large component libraries.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;Supabase&lt;/strong&gt; handles all the backend magic: authentication, the database, Edge Functions, and storage. It's truly a powerhouse.&lt;/li&gt;
&lt;li&gt;  For AI, we tapped into &lt;strong&gt;Gemini 2.5 Flash&lt;/strong&gt; for content generation, which proved surprisingly good and affordable, and &lt;strong&gt;Perplexity&lt;/strong&gt; for research.&lt;/li&gt;
&lt;li&gt;  The Telegram Bot API connects via webhooks.&lt;/li&gt;
&lt;li&gt;  Hosting? We went with &lt;strong&gt;Netlify&lt;/strong&gt; for the frontend and &lt;strong&gt;Supabase&lt;/strong&gt; for the backend.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;No &lt;strong&gt;Next.js&lt;/strong&gt;, no server-side rendering. This is a pure Single Page Application, with &lt;strong&gt;Supabase&lt;/strong&gt; taking care of all server-side operations through its Edge Functions. My goal was zero server maintenance, and we achieved it.&lt;/p&gt;

&lt;h2&gt;
  
  
  architecture decisions that worked
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. supabase edge functions as api layer
&lt;/h3&gt;

&lt;p&gt;This was a game-changer. Instead of building a separate backend from scratch, every single server-side operation runs as a &lt;strong&gt;Supabase&lt;/strong&gt; Edge Function. Whether it's scheduling posts, processing webhooks, or syncing RSS feeds, these are all Deno-based functions deployed with one simple command. It's incredibly efficient.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// Edge Function: scheduled-posts-cron&lt;/span&gt;
&lt;span class="c1"&gt;// Runs every minute via pg_cron&lt;/span&gt;
&lt;span class="nx"&gt;Deno&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;serve&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;async &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;req&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;now&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;Date&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="na"&gt;data&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;posts&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nx"&gt;supabase&lt;/span&gt;
    &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="k"&gt;from&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;scheduled_posts&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;select&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;*&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;lte&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;scheduled_at&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;now&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;toISOString&lt;/span&gt;&lt;span class="p"&gt;())&lt;/span&gt;
    &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;eq&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;status&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;pending&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

  &lt;span class="k"&gt;for &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;post&lt;/span&gt; &lt;span class="k"&gt;of&lt;/span&gt; &lt;span class="nx"&gt;posts&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nf"&gt;publishToTelegram&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;post&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;});&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  2. bot token stays on server
&lt;/h3&gt;

&lt;p&gt;Users connect their channels by adding our bot as an administrator. Crucially, the bot token never leaves &lt;strong&gt;Supabase&lt;/strong&gt;. All Telegram API calls happen securely within the Edge Functions. This means users don't have to create their own bots or worry about sharing sensitive tokens. It's a much safer approach.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. real-time with supabase realtime
&lt;/h3&gt;

&lt;p&gt;When a post finally publishes, the dashboard updates instantly. Seriously, there's no annoying polling. &lt;strong&gt;Supabase&lt;/strong&gt; channels combined with &lt;strong&gt;PostgreSQL&lt;/strong&gt; NOTIFY handles all of it, giving users immediate feedback.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="nx"&gt;supabase&lt;/span&gt;
  &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;channel&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;posts&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
  &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;on&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;postgres_changes&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="na"&gt;event&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;UPDATE&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="na"&gt;schema&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;public&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="na"&gt;table&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;scheduled_posts&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;
  &lt;span class="p"&gt;},&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;payload&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="c1"&gt;// Update UI immediately&lt;/span&gt;
  &lt;span class="p"&gt;})&lt;/span&gt;
  &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;subscribe&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  the ai part
&lt;/h2&gt;

&lt;p&gt;The content generation feature quickly became the most popular. Users simply type in a topic, pick a tone, and get a ready-to-post text, complete with all the right formatting. It's pretty neat.&lt;/p&gt;

&lt;p&gt;Under the hood, it's quite straightforward:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt; User input gets turned into a structured prompt, enriched with the channel's context.&lt;/li&gt;
&lt;li&gt; &lt;strong&gt;Gemini 2.5 Flash&lt;/strong&gt; then generates the text. It's fast, cheap, and honestly, good enough for most needs.&lt;/li&gt;
&lt;li&gt; The output is formatted as Telegram HTML (think bold, italic, links).&lt;/li&gt;
&lt;li&gt; Finally, the user can edit it in a visual editor before scheduling.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The AI image generation uses a similar flow, just routing to different image models. It's nothing overly complex, but it saves people a solid 20-30 minutes per post. That's a huge win.&lt;/p&gt;

&lt;h2&gt;
  
  
  ad exchange: connecting channel owners
&lt;/h2&gt;

&lt;p&gt;Here's a feature I absolutely didn't plan for, but users kept asking. They wanted an advertising marketplace. Channel owners wanted to sell ads, and advertisers wanted to buy them. So, we built a simple exchange. It now connects over 2,900 Ukrainian Telegram channels.&lt;/p&gt;

&lt;p&gt;Each channel page clearly displays subscriber counts, engagement rates (ER), available ad formats with prices, and a detailed research description powered by &lt;strong&gt;Perplexity AI&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;A quick technical aside: the channel data actually lives in a separate &lt;strong&gt;MySQL&lt;/strong&gt; database, a remnant from an older parser project. Our &lt;strong&gt;Vite&lt;/strong&gt; dev server proxies API calls to &lt;strong&gt;MySQL&lt;/strong&gt; via a server plugin. In production, it's just a static JSON build.&lt;/p&gt;

&lt;h2&gt;
  
  
  seo for a saas blog
&lt;/h2&gt;

&lt;p&gt;We recently launched a &lt;a href="https://blog.tgadm.in" rel="noopener noreferrer"&gt;blog&lt;/a&gt; specifically targeting Ukrainian Telegram marketing keywords. Here are a few things that really worked for us:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  We chose &lt;strong&gt;WordPress&lt;/strong&gt; with a custom theme. It's simply faster to publish content for our non-technical team than trying to wrestle with a static site generator.&lt;/li&gt;
&lt;li&gt;  Every post automatically gets FAQ Schema, HowTo Schema, and BlogPosting markup through &lt;code&gt;the_content&lt;/code&gt; filter. This programmatic SEO meta is a lifesaver.&lt;/li&gt;
&lt;li&gt;  We support three languages: Ukrainian (our primary focus), Russian, and English, all managed via &lt;strong&gt;Polylang&lt;/strong&gt;. This means one article translates into three indexed URLs.&lt;/li&gt;
&lt;li&gt;  Our AI-generated Pixar-style covers are unique, eye-catching, and help maintain a consistent brand identity. We create them using &lt;strong&gt;Gemini&lt;/strong&gt; image generation.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;We managed to go from zero to 36 published posts (that's 12 articles multiplied by 3 languages) with full Schema.org markup in just four weeks. I'm pretty proud of that.&lt;/p&gt;

&lt;h2&gt;
  
  
  numbers after 3 months
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;  170+ registered users in our first month after launch.&lt;/li&gt;
&lt;li&gt;  12 blog articles (36 with all the translations).&lt;/li&gt;
&lt;li&gt;  More than 2,900 channels listed in our ad exchange.&lt;/li&gt;
&lt;li&gt;  We even launched on &lt;strong&gt;Product Hunt&lt;/strong&gt; just this week!&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  what i'd do differently
&lt;/h2&gt;

&lt;p&gt;Looking back, a few things come to mind:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt; I'd start with the blog much earlier. SEO is a marathon, not a sprint. We launched the product first and the blog two months later. Those efforts should have been simultaneous.&lt;/li&gt;
&lt;li&gt; We should have used Edge Functions from day one. We initially started with client-side Telegram API calls, which was a bad idea because it exposed tokens. Migrating everything to Edge Functions ended up taking a whole week.&lt;/li&gt;
&lt;li&gt; I would skip the custom visual editor. Building a rich text editor specifically for Telegram formatting became a massive time sink. We absolutely should have used &lt;strong&gt;TipTap&lt;/strong&gt; or &lt;strong&gt;ProseMirror&lt;/strong&gt; right from the beginning. Live and learn!&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  try it
&lt;/h2&gt;

&lt;p&gt;If you manage Telegram channels, seriously, give &lt;a href="https://tgadm.in" rel="noopener noreferrer"&gt;TGADM.IN&lt;/a&gt; a try. We have a free plan available, and you don't even need a credit card to sign up.&lt;/p&gt;

&lt;p&gt;We also share a lot about Telegram marketing on our &lt;a href="https://blog.tgadm.in" rel="noopener noreferrer"&gt;blog&lt;/a&gt; (it's mostly in Ukrainian, but English versions are available too).&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Building something for Telegram? I'm happy to answer any questions in the comments below!&lt;/em&gt;&lt;/p&gt;

</description>
      <category>telegram</category>
      <category>react</category>
      <category>supabase</category>
      <category>ai</category>
    </item>
  </channel>
</rss>
