The moment it happens
Send error alerts to Discord and Telegram
When a job or system fails, your team sees the details in Discord and you get them on Telegram, wherever you are.
- 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 my app posts an error to this link, send the details to my Discord ops channel and to me on Telegram, and count errors per day.
First time? Adding ClickRuntime to your assistant takes about two minutes.
Why use it
Why teams use this automation
A small team runs a web app with background jobs for billing, imports and email. When a job fails, the error goes to a log nobody reads in real time. The team coordinates in Discord, but the lead developer is often away from her desk and only reliably checks Telegram on her phone. Failures are found the next morning, after customers have noticed.
Sending each error to both places means the team can see it in their shared channel and the person on call gets it on their phone, with a daily count that shows whether things are getting better or worse.
What you get out of it
Failures are noticed in minutes
An error message arrives the moment your app reports it. Problems are fixed before they spread to more customers.
The team and the on-call person both see it
Discord gives the whole team context and a place to discuss. Telegram reaches the person who needs to act, even away from a computer.
The details you need to start
Each alert includes the job name, the error message and the time. Whoever picks it up can start investigating without digging through logs first.
A daily error count
Errors are counted per day, so each alert shows how many have come in today. A sudden jump is obvious at a glance.
Works with any error source
Anything that can send a web request when it fails can use the link: your app, a cron job, a CI pipeline or a monitoring tool.
How it works
What happens, step by step
When your app or job reports an error to your trigger link, ClickRuntime receives it straight away.
It writes a short alert with the job name, the error and the time.
It adds one to today's error count and includes the running total in the alert.
The alert is posted to your Discord ops 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
Build your own
Need it to work differently?
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
from clickruntime import on_event, credentials, http, state
DISCORD_CHANNEL_ID = "your-discord-channel-id"
TELEGRAM_CHAT_ID = "your-telegram-chat-id"
@on_event
def handle(event):
e = event.json or {}
state.increment_metric("errors", ttl_days=30)
points = state.query_metric("errors")
today = points[-1]["value"] if points else 1
text = f"🚨 {e.get('job', 'Unknown job')} failed\n{str(e.get('error', 'No details'))[:1500]}\nErrors 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 {"sent": True}FAQ
Common questions
What should my app send?
Will a burst of errors flood my phone?
Can I send alerts to a Telegram group instead of just me?
What permissions does it need?
Does it need AI?
How many runs does it use?
Can I change how it works?
Related
You might also like
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.
See how it worksGet Discord and Telegram alerts when Notion statuses change
When an item in your Notion database changes status, a message goes to Discord and Telegram saying what moved and where.
See how it worksAnnounce new blog posts on Discord and Telegram
Each article you publish is posted to your Discord server and Telegram channel with its title, link and a short teaser.
See how it worksKeep exploring
Set up “Send error alerts to Discord and Telegram” from your assistant
Copy the prompt above, or connect your assistant first. Free plan, no credit card.