Google Sheets + Telegram

Telegram alerts for changes in the dispatchers’ working Google Sheet

📅2026
⏱2 days
👥1 developer
TMS Express · sheet “04/27 – 05/03”Pro #StatusCustomerPU LocationDEL LocationCarrier1041Delivered1042Delivered1043In Transit1044Covered1045CoveredMilwaukee, WI1046Covered1047Covered1048Covered1049Covered1050CoveredPRO counter → next 1051Telegram · Dispatch group📋 New dataDate: 04/27 – 05/03 | Row: 13Pro # : 1045PU Location → “Milwaukee, WI”12:41 · onEdit🔄 Status changeRow: 11 · Pro # : 1043Status → “In Transit”12:39 · onEdit (paste)Script PropertiesBOT_TOKEN · CHAT_ID · PRO_NEXT1 trigger · no duplicates
4
columns under watch
1 s
to a Telegram message
0
duplicate PRO numbers

The challenge

Dispatchers at a logistics company ran trips in a shared Google Sheet: someone added new data, someone changed statuses, and the manager found out only by opening the sheet. The full system was still being built, but changes had to be visible right away.

What was built

We wrote a Google Apps Script with an installable onEdit trigger. It watches the new-data and status columns and on every change sends a short Telegram message: sheet name (the week), row number, PRO # from the same row, the column name from the header and the new value. PRO numbers are issued sequentially through a counter in Script Properties so two dispatchers never take the same number. Bot tokens live in Script Properties, not in the code.

1

Edit trigger

installable onEdit; everyone in the Telegram group sees changes within a second.

2

Context in the message

sheet, row, PRO #, column name from the header and the new value.

3

Works on paste

the value is read from the range, so paste and bulk edits are caught too.

4

Sequential PRO #

a counter in Script Properties issues the next number without duplicates.

5

A single trigger

setup removes old triggers first, so messages are never duplicated.

6

No server

everything inside Google Workspace; tokens in Script Properties.

The result

The manager sees every status change in Telegram without opening the sheet, and PRO numbering stopped duplicating. The solution lived until the full TMS launched and became part of its requirements.

Tech stack

Google Apps ScriptGoogle SheetsTelegram Bot API

Have a similar challenge?

Discuss a project

Next case

Fleet ERP

ERP for an international carrier — trips, fuel, multi-currency →