{
  "manifest_version": "1.0.0",
  "template": {
    "id": "db5dc334-1b5d-4286-bc80-e75cd67798f2",
    "slug": "telegram-s3-uploader",
    "name": "Telegram S3 Uploader",
    "description": "Private Telegram bot that uploads files to S3-compatible storage",
    "url": "https://railway.com/deploy/telegram-s3-uploader",
    "upstream": {
      "repo_url": "https://github.com/BigDaddyAman/telegram-s3-uploader"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "telegram-s3-uploader",
      "source": {
        "repo": "https://github.com/BigDaddyAman/telegram-s3-uploader"
      },
      "needs_volume": false,
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "API_ID",
      "service": "telegram-s3-uploader",
      "description": "Your Telegram API ID from https://my.telegram.org",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "API_HASH",
      "service": "telegram-s3-uploader",
      "description": "Your Telegram API hash from https://my.telegram.org",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "BOT_TOKEN",
      "service": "telegram-s3-uploader",
      "description": "Bot token from @BotFather",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "S3_BUCKET",
      "service": "telegram-s3-uploader",
      "description": "Name of the bucket where files will be uploaded",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "S3_REGION",
      "service": "telegram-s3-uploader",
      "description": "Provide a value for S3_REGION.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "S3_ENDPOINT",
      "service": "telegram-s3-uploader",
      "description": "Custom S3 endpoint URL  Leave empty for AWS S3  Required for Cloudflare R2, MinIO, Railway Bucket",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "S3_ACCESS_KEY",
      "service": "telegram-s3-uploader",
      "description": "Access key for your S3-compatible storage",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "S3_SECRET_KEY",
      "service": "telegram-s3-uploader",
      "description": "Secret key for your S3-compatible storage",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "S3_MAX_CONCURRENCY",
      "service": "telegram-s3-uploader",
      "description": "Number of parts uploaded in parallel for a single large file. Higher values can increase upload speed but also use more CPU.",
      "secret": false,
      "strategy": "default",
      "default": "4"
    },
    {
      "key": "ENABLE_PRESIGNED_URL",
      "service": "telegram-s3-uploader",
      "description": "Enable or disable temporary download links  true → return presigned download link (default)  false → upload only (backup mode)",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "MAX_PARALLEL_UPLOADS",
      "service": "telegram-s3-uploader",
      "description": "Maximum number of files uploading at the same time across all users. Extra uploads are queued automatically.",
      "secret": false,
      "strategy": "default",
      "default": "3"
    },
    {
      "key": "S3_MULTIPART_CHUNK_MB",
      "service": "telegram-s3-uploader",
      "description": "Size (in MB) of each multipart chunk. Larger chunks reduce overhead but use more memory.",
      "secret": false,
      "strategy": "default",
      "default": "50"
    },
    {
      "key": "PRESIGNED_EXPIRE_SECONDS",
      "service": "telegram-s3-uploader",
      "description": "How long presigned download links remain valid (in seconds) Example: 3600 = 1 hour",
      "secret": false,
      "strategy": "default",
      "default": "3600"
    },
    {
      "key": "S3_MULTIPART_THRESHOLD_MB",
      "service": "telegram-s3-uploader",
      "description": "File size (in MB) at which multipart uploads start. Smaller files are uploaded in one request.",
      "secret": false,
      "strategy": "default",
      "default": "100"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "telegram-s3-uploader"
      }
    },
    "cli": "railway deploy --template telegram-s3-uploader",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "db5dc334-1b5d-4286-bc80-e75cd67798f2",
            "serializedConfig": {
              "buckets": {
                "cf7cec75-435b-4896-9db2-88dff28bc842": {
                  "name": "Bucket"
                }
              },
              "services": {
                "63e95da7-42c6-4010-b95a-27987c1dc18e": {
                  "icon": "https://devicons.railway.app/telegra",
                  "name": "telegram-s3-uploader",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/BigDaddyAman/telegram-s3-uploader",
                    "rootDirectory": null
                  },
                  "variables": {
                    "API_ID": {
                      "isOptional": false,
                      "description": "Your Telegram API ID from https://my.telegram.org",
                      "defaultValue": "{{API_ID}}"
                    },
                    "API_HASH": {
                      "isOptional": false,
                      "description": "Your Telegram API hash from https://my.telegram.org",
                      "defaultValue": "{{API_HASH}}"
                    },
                    "BOT_TOKEN": {
                      "isOptional": false,
                      "description": "Bot token from @BotFather",
                      "defaultValue": "{{BOT_TOKEN}}"
                    },
                    "S3_BUCKET": {
                      "isOptional": true,
                      "description": "Name of the bucket where files will be uploaded",
                      "defaultValue": "${{Bucket.BUCKET}}"
                    },
                    "S3_REGION": {
                      "isOptional": true,
                      "description": "",
                      "defaultValue": "${{Bucket.REGION}}"
                    },
                    "S3_ENDPOINT": {
                      "isOptional": true,
                      "description": "Custom S3 endpoint URL  Leave empty for AWS S3  Required for Cloudflare R2, MinIO, Railway Bucket",
                      "defaultValue": "${{Bucket.ENDPOINT}}"
                    },
                    "ALLOWED_USERS": {
                      "isOptional": true,
                      "description": "Comma-separated Telegram user IDs allowed to use the bot Example: 123456789,987654321 Leave empty to allow all users (not recommended)",
                      "defaultValue": ""
                    },
                    "S3_ACCESS_KEY": {
                      "isOptional": true,
                      "description": "Access key for your S3-compatible storage",
                      "defaultValue": "${{Bucket.ACCESS_KEY_ID}}"
                    },
                    "S3_SECRET_KEY": {
                      "isOptional": true,
                      "description": "Secret key for your S3-compatible storage",
                      "defaultValue": "${{Bucket.SECRET_ACCESS_KEY}}"
                    },
                    "S3_MAX_CONCURRENCY": {
                      "isOptional": true,
                      "description": "Number of parts uploaded in parallel for a single large file. Higher values can increase upload speed but also use more CPU.",
                      "defaultValue": "4"
                    },
                    "ENABLE_PRESIGNED_URL": {
                      "isOptional": false,
                      "description": "Enable or disable temporary download links  true → return presigned download link (default)  false → upload only (backup mode)",
                      "defaultValue": "false"
                    },
                    "MAX_PARALLEL_UPLOADS": {
                      "isOptional": true,
                      "description": "Maximum number of files uploading at the same time across all users. Extra uploads are queued automatically.",
                      "defaultValue": "3"
                    },
                    "S3_MULTIPART_CHUNK_MB": {
                      "isOptional": true,
                      "description": "Size (in MB) of each multipart chunk. Larger chunks reduce overhead but use more memory.",
                      "defaultValue": "50"
                    },
                    "PRESIGNED_EXPIRE_SECONDS": {
                      "isOptional": true,
                      "description": "How long presigned download links remain valid (in seconds) Example: 3600 = 1 hour",
                      "defaultValue": "3600"
                    },
                    "S3_MULTIPART_THRESHOLD_MB": {
                      "isOptional": true,
                      "description": "File size (in MB) at which multipart uploads start. Smaller files are uploaded in one request.",
                      "defaultValue": "100"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": false
  },
  "generated_at": "2026-09-20T10:14:37.339Z",
  "generator_version": "0.1.0"
}
