Clean up Telegram when Docs are restructured
A Google Doc gets a major structural overhaul. This automation detects the change and deletes old reference messages in Telegram, so the channel stays current with the doc's new shape.
Trigger
Document Structure Changed
Fires when a Google Doc’s structure changes, such as its headers, tables, or images.
Action
Delete Message
Deletes a Telegram message, subject to time, message type, and chat permissions.
Why this helps
You post links and references in Telegram about a doc's structure. Then someone reorganizes the entire doc, making your references obsolete. The old messages linger, confusing the team.
- Keep Telegram references accurate and current
- Reduce confusion from stale messages
- Automate channel maintenance
Setup
Build it in a few focused steps.
- 1Connect Google Docs and Telegram to Notis.
- 2Tell Notis: 'When my Google Doc is restructured (new sections added or removed), delete the old reference message in Telegram.'
- 3Identify the specific messages to delete or create a naming pattern Notis can recognize.
- 4Select 'Document Structure Changed' as the trigger.
- 5Restructure the doc (add a major section) and verify the old message is deleted from Telegram.
Questions about this workflow
How does Notis know which messages to delete?
You specify message IDs, or tell Notis to delete messages with specific keywords (e.g., 'outdated' or 'version 1').
Can I archive the message instead of deleting it?
Yes. Ask Notis to move it to a pinned/archive thread before deleting from the main channel.
What if the doc structure changes but I want to keep the reference?
Create a separate automation that updates the message instead of deleting it. Notis can do both.
When this happens · Trigger
Fires when a Google Doc’s structure changes, such as its headers, tables, or images.
Do this · Action
Deletes a Telegram message, subject to time, message type, and chat permissions.
Supported Triggers and Actions
Notis builds workflows that link Google Docs to Telegram. A trigger fires from one place; an action lands in another.
Google Docs triggers
Telegram actions
Recurring trigger
Notis starts this workflow on a schedule, such as daily, weekly, or during business hours.
Answer Callback Query
Send an answer to an inline button callback, shown as a chat notification or alert.
Webhook trigger
Notis starts this workflow when an external tool or custom backend sends an HTTP request.
Delete Message
Deletes a Telegram message, subject to time, message type, and chat permissions.
New Document Created
Fires when a new Google Doc is created.
Edit Message
Edits a Telegram message, subject to Telegram’s permissions and restrictions.
Document Deleted
Fires when an existing Google Doc is moved to the trash.
Export Chat Invite Link
Generate a new primary chat invite link, revoking the previous one.
Document Placeholder Filled
Fires when a configured placeholder pattern disappears from a Google Doc’s text.
Forward Message
Forwards a Telegram message; service messages and protected content cannot be forwarded.
Document Search Update
Fires when a Google Doc matching a search query is created or updated.
Get Chat Info
Retrieve current information about a chat.
Document Structure Changed
Fires when a Google Doc’s structure changes, such as its headers, tables, or images.
Get Chat Administrators
Lists chat administrators, excluding other bots.
Document Updated
Fires when an existing Google Doc is updated.
Get Chat History
Polls pending bot updates and filters the batch; this is not complete chat history.
Connect any two apps with Notis in the middle.
Google Docs and Telegram, or any other combination from 1,700+ integrations.
When this happens · Trigger
Do this · Action
Save your first hour today.
7-day trial of any paid plan, with $20 of usage included.
No card. Works with personal or business Telegram.