Connect Supabase to Telegram
Ideas
What you can do with Supabase and Telegram
Answer questions in Telegram from your own documents
People ask your Telegram bot a question and get an answer drawn from the documents stored in your Supabase table.
See how it worksRun a Telegram assistant that remembers each user
Your Telegram bot replies with AI and remembers each user's recent messages, stored in your Supabase tables, so conversations stay in context.
See how it worksAdd and list Supabase records from Telegram commands
You type /add, /list or /delete to your Telegram bot and the matching rows in your Supabase table are created, shown or removed.
See how it worksSend new feed posts to Telegram, never twice
Every new post from a feed you follow is saved in Supabase and sent to your Telegram channel exactly once.
See how it worksRemind customers on Telegram before their subscription ends
Every morning, customers whose subscription ends in 3 days get a Telegram reminder, and each one is marked so it's only sent once.
See how it worksCheck form sign-ups, save them to Supabase and ping Telegram
Each customer your form sends is checked, saved to Supabase unless they already exist, and you get a Telegram message either way.
See how it works Your own logicAny other automation you can describe in words
Your own rules, schedule and AI steps with Supabase and Telegram, plus any other app. Describe it and your assistant builds it.
See how to build your ownBuild your own
Build any Supabase and Telegram automation you can describe
Your own rules
Conditions, thresholds, filters and exceptions, written the way you'd explain them to a colleague.
Any number of apps
One automation can read from one app and update several others. Over 248 apps are ready, and anything with an API works too.
AI where it helps
Summaries, classification, extraction and drafts use ClickRuntime's built-in AI, with no extra key.
On a schedule or on each event
Runs as often as every 5 minutes, or the moment an app sends an event, and keeps track of what it already handled.
For example, ask your assistant
Rate limit the bot to 20 messages per user per day, counting in a Supabase table, and reply politely when the limit is reached.
Send me a Telegram alert when any row in my orders table has status "failed".
Use cases
Why people connect Supabase and Telegram
How the two apps work together
- Messages to your Telegram bot reach ClickRuntime through the bot's webhook straight away.
- The script reads or writes Supabase rows for each message or command.
- Supabase database webhooks or checks every few minutes send new rows to your Telegram chat.
Developers building a bot with memory
Each Telegram user's messages and settings are stored in Supabase. The bot remembers context.
Small teams managing data from chat
Commands like /add or /list in Telegram update Supabase tables. No admin panel needed.
Founders watching their app
New signups or orders in Supabase are sent to Telegram. You know as it happens.
Communities running a quiz or tracker
Scores or logs are stored in Supabase and shown on request. Data persists across chats.
More apps
Supabase, Telegram and other apps in one automation
Answer from documents
When someone asks my Telegram bot a question, find matching text in my Supabase documents table and have OpenAI answer from it.
Weekly export
Each Sunday, export my Supabase bot logs to a Google Sheet and send me the totals on Telegram.
Paid users only
Only let Telegram users with an active Stripe subscription, stored in my Supabase table, use the bot's premium commands.
Setup
Connect Supabase and Telegram once
Supabase
Developer / Database & backend
- In your Supabase project, open Settings, then API Keys, and copy or create a secret key (it starts with
sb_secret_). - Note your project URL, which looks like
https://<project-ref>.supabase.co. - If an automation needs the Management API, go to Account, then Access Tokens, and generate a new token.
- In the ClickRuntime dashboard, open Connections & secrets and save the project URL and secret key (and the access token, if you made one).
Telegram
Messaging
- In Telegram, open a chat with @BotFather and send
/newbot. - Choose a name and a username for your bot, then copy the token BotFather sends (it looks like
123456:ABC-...). - Open your new bot and press Start, so it is allowed to message you. For groups or channels, add the bot and give it admin rights if it should post or delete.
- In the ClickRuntime dashboard, open Connections & secrets and save the bot token.
FAQ
Questions about connecting Supabase and Telegram
Do I need to host the bot anywhere?
Can strangers use my bot?
Can the bot message people first?
Where is the conversation history stored?
Can it use pgvector?
Where are bot settings kept?
Can several bots share the database?
Related pages
Keep exploring
Tell your assistant what Supabase and Telegram should do together
Free plan. No credit card.