Every 5 minutes
Get a Telegram message when an Excel sheet changes
You hear on Telegram whenever rows are added, changed or removed in a shared Excel sheet.
- Runs
- Every 5 minutes
- Apps
- Microsoft Excel, Telegram
- AI
- Not needed
- Access
- Files.Read; bot token
Send this to your assistant
Create a ClickRuntime automation: every 5 minutes, check the Orders sheet in my OneDrive workbook and message me on Telegram with any rows that were added, changed or deleted.
First time? Adding ClickRuntime to your assistant takes about two minutes.
Why use it
Why teams use this automation
A shared workbook is often the real system behind a small team: orders, stock counts, a rota. Changes made by colleagues or customers go unnoticed until something goes wrong, and Excel's own notifications are easy to miss.
A short Telegram message for each change tells you straight away when an order is added or a stock count is edited, so you can react without keeping the workbook open all day.
What you get out of it
Know when something changes
A message arrives within minutes of an edit. You don't need to keep checking the file.
See exactly what changed
Each message shows the row that was added, the before and after of an edit, or the row that was removed.
Catch mistakes early
An accidental deletion or a wrong figure is noticed while it's easy to fix.
Works on your phone
Telegram is quick to read anywhere, even on a slow connection.
How it works
What happens, step by step
Every 5 minutes it reads the sheet from your workbook on OneDrive.
It compares each row with the copy it saved last time, using the first column as the row's ID.
Rows that were added, changed or deleted are listed in a Telegram message.
The new copy of the sheet is saved for the next comparison. The first run only saves a copy and sends nothing.
Before it runs live
- Connect Microsoft Excel
- Connect Telegram
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 Microsoft Excel and Telegram steps into one automation
Under the hood
The code that runs this automation
GRAPH = "https://graph.microsoft.com/v1.0"
TG = "https://api.telegram.org"
from clickruntime import on_trigger, credentials, http, state
SHEET = "/me/drive/root:/Shared/orders.xlsx:/workbook/worksheets/Orders/usedRange"
CHAT_ID = 123456789
@on_trigger
def run(event):
h = {"Authorization": f"Bearer {credentials.connection('microsoft', 'work')}"}
values = http.get(f"{GRAPH}{SHEET}", headers=h, params={"$select": "values"}).json()["values"]
now = {str(r[0]): [str(c) for c in r] for r in values[1:] if r and r[0] != ""}
before = state.get("rows")
state.set("rows", now)
if before is None:
return {"summary": "First snapshot saved"}
lines = [f"➕ {' | '.join(now[k])}" for k in now if k not in before]
lines += [f"✏️ {k}: {' | '.join(before[k])} → {' | '.join(now[k])}" for k in now if k in before and now[k] != before[k]]
lines += [f"➖ {' | '.join(before[k])}" for k in before if k not in now]
if lines:
text = "Orders sheet changed:\n" + "\n".join(lines[:30])
http.post(f"{TG}/bot{credentials.secret('TELEGRAM_BOT_TOKEN')}/sendMessage", json={"chat_id": CHAT_ID, "text": text})
return {"changes": len(lines)}FAQ
Common questions
How does it tell rows apart?
Will it message me for every small edit?
Can it alert a group?
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
Add rows to an Excel table from Telegram messages
Messages sent to your Telegram bot in a set format, such as "12.50 lunch with client", are added as dated rows to an Excel table in OneDrive, and the bot replies to confirm.
See how it worksGet Telegram reminders for due dates in an Excel sheet
Every morning at 8am a Telegram message lists rows in an Excel sheet that are due today or overdue and not marked Done, with the owner and days late.
See how it worksLog receipts sent to Telegram in Excel
Send a photo or PDF of a receipt to your Telegram bot and the date, supplier and amount are added to your Excel expenses table.
See how it worksKeep exploring
Set up “Get a Telegram message when an Excel sheet changes” from your assistant
Copy the prompt above, or connect your assistant first. Free plan, no credit card.