Automatic Deletion Logging for Google Drive Audit Trail
Accidental deletions happen. This automation sends a Telegram message whenever a file is trashed or deleted, so you have a record and can recover files if needed.
Trigger
File Deleted or Trashed
Triggers when a file is moved to trash or permanently deleted in Drive.
Action
Send Message
Send a text message to a telegram chat using the bot api.
Why this helps
Files get accidentally deleted or moved to trash, and founders don't discover the loss until they need the file. Without a log, recovery becomes a scramble and important work can be permanently lost.
- Catch accidental deletions immediately
- Maintain an audit trail of removed files
- Recover deleted files before they're permanently lost
- Reduce anxiety about data loss by having a deletion log
Setup
Build it in a few focused steps.
- 1Connect Google Drive and Telegram to Notis.
- 2Create an automation: 'Send me a Telegram message whenever a file is deleted or moved to trash in Google Drive'.
- 3Choose the trigger: Google Drive File Deleted or Trashed event.
- 4Select the Telegram chat to receive deletion alerts.
- 5Test by moving a sample file to trash and confirm the alert appears in Telegram.
Questions about this workflow
Can I recover a deleted file if I see the alert in time?
Yes. If the file is in trash, you can recover it from Google Drive's trash folder. The Telegram alert gives you a window to act before the file is permanently deleted.
Will this alert for every file deletion, or can I focus on important ones?
You can customize the automation to alert only on deletions of files in specific folders or matching certain naming patterns. For example: 'Alert me only when spreadsheets are deleted'.
Does the alert show who deleted the file?
Notis includes the file name and deletion timestamp. For team Drive files, you can extend the prompt to track who performed the deletion.
When this happens · Trigger
Do this · Action
Supported Triggers and Actions
Notis builds workflows that link Google Drive to Telegram. A trigger fires from one place; an action lands in another.
Google Drive triggers
Telegram actions
Comment Added (Docs/Sheets/Slides)
Triggers when a new comment is added to Google Docs, Sheets, or Slides.
Answer Callback Query
Use this method to send answers to callback queries sent from inline keyboards. the answer will be displayed to the user as a notification at the top of the chat screen or as an alert.
File Created
Triggers when a new file is created in Google Drive.
Delete Message
Delete a message, including service messages, with certain limitations.
File Deleted or Trashed
Triggers when a file is moved to trash or permanently deleted in Drive.
Edit Message
Edit text messages sent by the bot.
File Shared (Permissions Added)
Triggers when new sharing permissions are granted to a file or folder. Uses Drive's `changes.list` endpoint with inline `permissions` in the `fields` mask so each change carries the file's current permission set provider-atomically. We diff that against `seen_permission_keys` to identify newly added grants. Drive page tokens are the primary cursor; if Drive rejects a stored token, the trigger raises `PollingTriggerError` without clearing state rather than silently re-baselining and dropping events. Limitation: truly ephemeral permissions (added and revoked between two polls without any other file modification in between) are not detected. Drive Activity API would catch those but requires an additional OAuth scope and a different payload contract.
Export Chat Invite Link
Generate a new primary invite link for a chat; any previously generated primary link is revoked. the bot must be an administrator in the chat for this to work and must have the appropriate administrator rights.
File Updated
Triggers when a file's metadata or content changes in Google Drive.
Forward Message
Forward messages of any kind. service messages can't be forwarded.
Google Drive Changes
Triggers when changes are detected in a Google Drive.
Get Chat Info
Get up to date information about the chat (current name of the user for one-on-one conversations, current username of a user, group or channel, etc.).
New File Matching Query
Triggers when a new Google Drive file matches a provided query. This is the legacy query-centric trigger: it preserves Drive API query config such as ``corpora`` / ``driveId`` aliases and emits the historical ``file_matching_query`` event type. ``FileCreatedTrigger`` covers the broader "new file" case and emits ``file_created``.
Get Chat Administrators
Get a list of administrators in a chat. on success, returns an array of chatmember objects that contains information about all chat administrators except other bots.
Get Chat History
Get chat history messages. note: this uses the getupdates method with specific parameters to retrieve historical messages.
Connect any two apps with Notis in the middle.
Not just Google Drive and Telegram. Any combination from 985+ integrations.
When this happens · Trigger
Do this · Action
Save your first hour today.
7 days free trial with 20$ free usage included.
No card. Works with personal or business Telegram.
