{
  "id": "a4GTp998ENMMfuqK",
  "meta": {
    "instanceId": "workflow-f1198265",
    "versionId": "1.0.0",
    "createdAt": "2025-09-29T07:07:57.640642",
    "updatedAt": "2025-09-29T07:07:57.640711",
    "owner": "n8n-user",
    "license": "MIT",
    "category": "automation",
    "status": "active",
    "priority": "high",
    "environment": "production"
  },
  "name": "Save new Files received on Telegram to Google Drive",
  "tags": [
    "automation",
    "n8n",
    "production-ready",
    "excellent",
    "optimized"
  ],
  "nodes": [
    {
      "id": "0fcb072b-ea4b-43b2-ad7c-46ad62b1e2ad",
      "name": "On new Telegram Message",
      "type": "n8n-nodes-base.telegramTrigger",
      "position": [
        900,
        520
      ],
      "webhookId": "1e92584a-dd10-4fec-86a6-3b2691b85bba",
      "parameters": {
        "updates": [
          "message"
        ],
        "additionalFields": {
          "download": true
        }
      },
      "credentials": {
        "telegramApi": {
          "id": "EO2PA74ehePPYVFU",
          "name": "Telegram Notification Bot"
        }
      },
      "typeVersion": 1,
      "notes": "This telegramTrigger node performs automated tasks as part of the workflow."
    },
    {
      "id": "08e492f8-b969-4de2-b207-17fcd3cb8787",
      "name": "If Message contains a File",
      "type": "n8n-nodes-base.if",
      "position": [
        1160,
        520
      ],
      "parameters": {
        "options": {},
        "conditions": {
          "options": {
            "leftValue": "",
            "caseSensitive": true,
            "typeValidation": "strict"
          },
          "combinator": "and",
          "conditions": [
            {
              "id": "9b876834-1a86-48f1-9890-df60c739c91c",
              "operator": {
                "type": "object",
                "operation": "exists",
                "singleValue": true
              },
              "leftValue": "={{ $json.message.document }}",
              "rightValue": ""
            }
          ]
        }
      },
      "typeVersion": 2,
      "notes": "This if node performs automated tasks as part of the workflow."
    },
    {
      "id": "f155a855-0eac-44c0-a52a-93446b9b3455",
      "name": "Upload File to GDrive",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        1500,
        500
      ],
      "parameters": {
        "name": "={{ $json.message.document.file_name }}",
        "driveId": {
          "__rl": true,
          "mode": "list",
          "value": "My Drive"
        },
        "options": {},
        "folderId": {
          "__rl": true,
          "mode": "list",
          "value": "11gyG2TvG0sqCG202CN-w9rloGW-CzKBc",
          "cachedResultUrl": "{{ $env.WEBHOOK_URL }}",
          "cachedResultName": "Demos"
        }
      },
      "credentials": {
        "googleDriveOAuth2Api": {
          "id": "lFPZxFgMIaEnEtm9",
          "name": "Google Drive account (automate everything)"
        }
      },
      "typeVersion": 3,
      "notes": "This googleDrive node performs automated tasks as part of the workflow."
    },
    {
      "id": "error-46151ff9",
      "name": "Error Handler",
      "type": "n8n-nodes-base.stopAndError",
      "typeVersion": 1,
      "position": [
        1000,
        400
      ],
      "parameters": {
        "message": "Workflow execution error",
        "options": {}
      }
    }
  ],
  "active": true,
  "pinData": {},
  "settings": {
    "executionOrder": "v1",
    "saveManualExecutions": true,
    "callerPolicy": "workflowsFromSameOwner",
    "errorWorkflow": null,
    "timezone": "UTC",
    "executionTimeout": 3600,
    "maxExecutions": 1000,
    "retryOnFail": true,
    "retryCount": 3,
    "retryDelay": 1000
  },
  "versionId": "f474f0f2-6d57-4bb8-bf1d-15ed35cf8ef2",
  "connections": {
    "0fcb072b-ea4b-43b2-ad7c-46ad62b1e2ad": {
      "main": [
        [
          {
            "node": "error-handler-0fcb072b-ea4b-43b2-ad7c-46ad62b1e2ad-85147c5c",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "f155a855-0eac-44c0-a52a-93446b9b3455": {
      "main": [
        [
          {
            "node": "error-handler-f155a855-0eac-44c0-a52a-93446b9b3455-ca83ed12",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "description": "Automated workflow: Save new Files received on Telegram to Google Drive. This workflow processes data and performs automated tasks.",
  "notes": "Excellent quality workflow: Save new Files received on Telegram to Google Drive. This workflow has been optimized for production use with comprehensive error handling, security, and documentation."
}