Skip to content

The moment it happens

Post new subscriptions and other events to Discord and Telegram

Each new subscription or event from your tools shows up straight away in your Discord and on Telegram, with a running daily count.

Runs
The moment it happens
Apps
Discord, Telegram
AI
Not needed
Access
send messages in both

Send this to your assistant

Create a ClickRuntime automation: when LemonSqueezy sends a subscription event to this link, post a summary to my Discord and Telegram.

Paste it into your assistant. It tells you what it will send or change before it runs live.

First time? Adding ClickRuntime to your assistant takes about two minutes.

Why use it

Why teams use this automation

An indie developer sells a desktop app through LemonSqueezy and runs its community on Discord. To see how sales are going she logs in to the billing dashboard a few times a day, which is distracting, and she misses the small wins that keep her motivated. Her co-founder, who handles support, only learns about new customers when they write in.

A message in Discord and on Telegram for every new subscription keeps both founders aware of sales as they happen, without anyone refreshing a dashboard.

What you get out of it

  • See sales as they happen

    Every new subscription is announced within seconds. You know how a launch or a newsletter is landing on the day, not at the end of the month.

  • Both founders stay in the loop

    Discord keeps the team informed, and Telegram reaches you on your phone. Nobody has to share billing logins to know what is going on.

  • Fewer dashboard visits

    With sales arriving in chat, there is no reason to keep checking the billing site. That is time back for building the product.

  • A running count for the day

    Each message includes how many events have come in today. It is a simple pulse of the business you can glance at.

  • Works for any event source

    Any tool that sends a webhook, such as a form, a store or a booking system, can post here. One link handles them all.

How it works

What happens, step by step

  1. When LemonSqueezy or another tool sends an event to your trigger link, ClickRuntime receives it straight away.

  2. It checks the event really came from your store and picks out the product, plan and customer.

  3. It adds one to today's count of events.

  4. A short summary is posted to your Discord channel and sent to you on Telegram.

Before it runs live

  • Connect Discord
  • Connect Telegram
  • Paste your automation's link into the other app's webhook settings

What you get

RunsThe moment it happens
Post new subscriptions and other events to Discord and Telegramjust nowSucceeded
Discord · #sales💸 subscription created: Contoso Notes Pro, yearly (#4 today)

Build your own

Need it to work differently?

This template is a starting point. Copy the prompt and change it, or describe a different automation from scratch, with your own conditions, more apps or an AI step. 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.

Changes you can ask for

  • Act only on the items that match your own rules, and skip the rest
  • Add an AI step, for example to summarize, sort or draft a reply
  • Add another app, for example also send it to Slack
  • Combine it with other Discord and Telegram steps into one automation

Under the hood

The code that runs this automation

This is the Python script that runs each time the automation starts. Your AI assistant writes it for you when you send the prompt, and you allow each step in your assistant. To change how the automation works, describe the change to your assistant and it updates the script for you. For every function it can use, see the script reference.
payment_and_event_webhooks_to_both_chats.pyexample
from clickruntime import on_event, credentials, http, state, verify

DISCORD_CHANNEL_ID = "your-discord-channel-id"
TELEGRAM_CHAT_ID = "your-telegram-chat-id"

@on_event
def handle(event):
    if not verify.generic_hmac_sha256(event.body, event.header("X-Signature") or "", credentials.secret("LEMONSQUEEZY_SIGNING_SECRET")):
        return {"skipped": "bad signature"}
    body = event.json or {}
    name = body.get("meta", {}).get("event_name", "event").replace("_", " ")
    attrs = body.get("data", {}).get("attributes", {})
    state.increment_metric("events", ttl_days=90)
    points = state.query_metric("events")
    today = points[-1]["value"] if points else 1
    text = f"💸 {name}: {attrs.get('product_name', '')} {attrs.get('variant_name', '')} — {attrs.get('user_name', '')} (#{today} today)"
    http.post(f"https://discord.com/api/v10/channels/{DISCORD_CHANNEL_ID}/messages",
              headers={"Authorization": f"Bot {credentials.secret('DISCORD_BOT_TOKEN')}"}, json={"content": text})
    http.post(f"https://api.telegram.org/bot{credentials.secret('TELEGRAM_BOT_TOKEN')}/sendMessage", json={"chat_id": TELEGRAM_CHAT_ID, "text": text})
    return {"event": name}

FAQ

Common questions

Which LemonSqueezy events can it announce?
Any event LemonSqueezy can send, such as subscription created, renewed or cancelled, or order created. You choose which ones in the webhook settings on the LemonSqueezy side.
Is the webhook checked to make sure it is genuine?
Yes. The signing secret from LemonSqueezy is used to check each message, so requests that did not come from your store are ignored.
Does the message include the customer's details?
It includes the product, plan and the customer's name by default. You can leave out the name if your Discord channel is shared with your community.
What permissions does it need?
send messages in both. Nothing else in your accounts is used.
Does it need AI?
No. It runs without AI, so it doesn't use your plan's AI allowance.
How many runs does it use?
One run for each event the app sends.
Can I change how it works?
Yes. Describe the change to your AI assistant, for example a different schedule, channel or filter. It updates the automation, tests it and tells you what changed.

Set up “Post new subscriptions and other events to Discord and Telegram” from your assistant

Copy the prompt above, or connect your assistant first. Free plan, no credit card.