Save Telegram Files to Google Drive Automatically with n8n

This n8n workflow automates saving files received via Telegram messages directly to Google Drive, eliminating manual downloads and uploads. It ensures important files are securely backed up immediately as they arrive, saving time and reducing error.
telegramTrigger
if
googleDrive
Workflow Identifier: 1645
NODES in Use: Telegram Trigger, If, Google Drive

Press CTRL+F5 if the workflow didn't load.

Learn how to Build this Workflow with AI:

Visit through Desktop for Best experience

What this workflow does

This workflow automatically saves files sent to a Telegram bot into a Google Drive folder. It solves the problem of manual downloading and uploading of files, saving you time and avoiding mistakes. Every new file received in Telegram is instantly uploaded to the right Google Drive folder with the original name kept.

The workflow runs all the time. It watches for new Telegram messages with files, downloads those files, and uploads them to Google Drive without you touching anything.


Who should use this workflow

This is good for people who get many files through Telegram and want to save them fast and safely. It helps freelancers, remote teams, or anyone tired of moving files manually between Telegram and cloud storage.


Tools and services used

  • Telegram Bot API: Receives messages with files sent to a bot.
  • Google Drive OAuth2: Uploads files securely to Google Drive folders.
  • n8n platform: Runs the automation workflow continuously.

How this workflow works (Input → Process → Output)

Inputs

Incoming messages to the Telegram bot that include file attachments.

Processing Steps

  • The Telegram Trigger node listens for new messages and automatically downloads attached files.
  • An If node checks if the message has a file by looking for the document attribute.
  • The Google Drive node uploads the downloaded file to a set Google Drive folder, keeping the original file name.

Output

The attached file from Telegram saved in the chosen Google Drive folder, ready for use.


Beginner step-by-step: How to use this workflow in n8n

Importing the workflow

  1. Click the Download button on this page to save the workflow file.
  2. Open the n8n editor and select “Import from File”.
  3. Find and import the downloaded workflow file.

Configuring credentials and settings

  1. Go to Credentials in n8n and add your Telegram Bot API Key.
  2. Add your Google Drive OAuth2 credentials.
  3. In the Google Drive node, update the folder ID with your target Drive folder.

Testing the workflow

  1. Send a file message to your Telegram bot.
  2. Check if the file appears in the Google Drive folder.

Activating the workflow

  1. In the top right, toggle the workflow switch to “Active”.
  2. The workflow now runs continuously, saving new Telegram files automatically.

Remember to verify bot permissions and credentials if files do not upload.

If running n8n under heavy use, consider self-host n8n for better performance.


Customization ideas

  • Change the Google Drive folder by editing the folderId in the Google Drive node.
  • Filter file types by checking $json.message.document.mime_type in the If node.
  • Rename uploaded files using expressions like "ClientFile_" + $json.message.document.file_name.
  • Add a notification node (Slack or Email) after the upload to get alerts when files save.

Edge cases and troubleshooting

If files do not upload, check Google Drive folder ID and OAuth2 credentials are correct.

If the Telegram trigger does not fire, confirm the bot’s message permissions and that the n8n webhook URL works.

Always keep a backup of your workflow export to restore if needed.


Summary of results

✓ Saves Telegram files directly to Google Drive folder automatically.

✓ Keeps original file names intact.

✓ Runs all the time without manual effort.

✓ Cuts down time spent managing files by around 30 minutes daily.

✓ Reduces risk of file loss or misplacement.

Promoted by BULDRR AI

Related Workflows

Automate Viral UGC Video Creation Using n8n + Degaus (Beginner-Friendly Guide)

Learn how to automate viral UGC video creation using n8n, AI prompts, and Degaus. This beginner-friendly guide shows how to import, configure, and run the workflow without technical complexity.
Form Trigger
Google Sheets
Gmail
+37
Free

AI SEO Blog Writer Automation Workflows in n8n

A complete beginner guide to building an AI SEO blog writer automation using n8n.
AI Agent
Google Sheets
httpRequest
+5
Free

Automate CrowdStrike Alerts with VirusTotal, Jira & Slack

This workflow automates processing of CrowdStrike detections by enriching threat data via VirusTotal, creating Jira tickets for incident tracking, and notifying teams on Slack for quick response. Save hours daily by transforming complex threat data into actionable alerts effortlessly.
scheduleTrigger
httpRequest
jira
+5
Free

Automate Telegram Invoices to Notion with AI Summaries & Reports

Save hours on financial tracking by automating invoice extraction from Telegram photos to Notion using Google Gemini AI. This workflow extracts data, records transactions, and generates detailed spending reports with charts sent on schedule via Telegram.
lmChatGoogleGemini
telegramTrigger
notion
+9
Free

Automate Email Replies with n8n and AI-Powered Summarization

Save hours managing your inbox with this n8n workflow that uses IMAP email triggers, AI summarization, and vector search to draft concise replies requiring minimal review. Automate business email processing efficiently with AI guidance and Gmail integration.
emailReadImap
vectorStoreQdrant
emailSend
+12
Free

Automate Email Campaigns Using n8n with Gmail & Google Sheets

This n8n workflow automates personalized email outreach campaigns by integrating Gmail and Google Sheets, saving hours of manual follow-up work and reducing errors in email sequences. It ensures timely follow-ups based on previous email interactions, optimizing communication efficiency.
googleSheets
gmail
code
+5
Free