Skip to content

Connect Supabase to Telegram

Telegram bots are a quick way to give people answers, alerts and commands, and Supabase is a good place to keep what the bot knows. Together they make bots that remember users, search your documents and never send the same alert twice.

Ideas

What you can do with Supabase and Telegram

Telegram bots and alerts backed by your Supabase tables. These are ready-made starting points. Anything else you can describe works too.

Build your own

Build any Supabase and Telegram automation you can describe

The ideas above are ready-made starting points, not a fixed list. Describe what should happen between Supabase and Telegram in your own words, with your conditions, other apps or an AI step, and your assistant writes it, tests it and runs it on ClickRuntime.
  • 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

An automation isn't limited to two apps. Add the next step in another app and it runs as part of the same 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

Every idea on this page uses the same two connections, so you set them up once. If one is missing, your assistant tells you and links to the right place.

Supabase

Developer / Database & backend

  1. In your Supabase project, open Settings, then API Keys, and copy or create a secret key (it starts with sb_secret_).
  2. Note your project URL, which looks like https://<project-ref>.supabase.co.
  3. If an automation needs the Management API, go to Account, then Access Tokens, and generate a new token.
  4. 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

  1. In Telegram, open a chat with @BotFather and send /newbot.
  2. Choose a name and a username for your bot, then copy the token BotFather sends (it looks like 123456:ABC-...).
  3. 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.
  4. 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?
No. You create the bot with BotFather, save its token in your ClickRuntime dashboard and point the bot's webhook at your automation's trigger link.
Can strangers use my bot?
Telegram bots are public by default. Automations here can check the sender's chat ID and ignore anyone not on your list.
Can the bot message people first?
Only people who have started a chat with it. Telegram doesn't let bots message users who haven't.
Where is the conversation history stored?
In your own Supabase tables, so you can view, export or delete it at any time.
Can it use pgvector?
Yes. The script can call a Supabase function that runs a vector search.
Where are bot settings kept?
In your Supabase tables or in ClickRuntime state, as you prefer.
Can several bots share the database?
Yes. Each bot's automation can use the same Supabase project.

Tell your assistant what Supabase and Telegram should do together

Free plan. No credit card.