Menu

I Run My Telegram File Bot on a Free Supabase Edge Function
πŸ“°

I Run My Telegram File Bot on a Free Supabase Edge Function

DEV Community: serverlessΒ·ILIA KARPENKOΒ·3 days ago
#T5eWjnz6
#devtoserverless#devto#dev#telegram#function
Long article (884 words) β€” no AI summary yet.
Reading 0:00
15s threshold

Someone requests to join my private Telegram channel. A bot sends them a PDF in a private message, then approves the request. The part I like about this setup: I don't have a separate server running for the bot. It uses a Supabase Edge Function on the Free plan.

The code is open source: telegram-file-bot on GitHub . Here's how the webhook, file delivery, and approval fit together, and what the free setup does not solve.

Why an Edge Function?

A traditional polling bot repeatedly asks Telegram for updates. This bot uses a webhook: Telegram sends an HTTPS request when a relevant update arrives.…

Continue reading β€” create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.