{
  "manifest_version": "1.0.0",
  "template": {
    "id": "1d4eba1a-d739-4fe1-bd3e-c12895da00d3",
    "slug": "sNYhKQ",
    "name": "Simple Telegram GPT Bot",
    "description": "A simple AI chatbot leverages GPT models.",
    "url": "https://railway.com/deploy/sNYhKQ",
    "upstream": {
      "repo_url": "https://github.com/kaxing/simple-telegram-gpt-bot/"
    }
  },
  "services": [
    {
      "name": "bot",
      "source": {
        "repo": "https://github.com/kaxing/simple-telegram-gpt-bot/"
      },
      "needs_volume": false,
      "tcp_ports": [
        443
      ],
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "TELEGRAM_TOKEN",
      "service": "bot",
      "description": "Bot token is required for initializing the bot.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "NIXPACKS_PYTHON_VERSION",
      "service": "bot",
      "description": "Specify default Python version for the environment.",
      "secret": false,
      "strategy": "default",
      "default": "3.11"
    },
    {
      "key": "ENABLE_ALPINE_PRIVATE_NETWORKING",
      "service": "bot",
      "description": "Due to the script start time too short. We need to apply this workaround: https://docs.railway.app/guides/private-networking#workaround-for-alpine-based-images",
      "secret": false,
      "strategy": "default",
      "default": "true"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "sNYhKQ"
      }
    },
    "cli": "railway deploy --template sNYhKQ",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "1d4eba1a-d739-4fe1-bd3e-c12895da00d3",
            "serializedConfig": {
              "services": {
                "6877aa30-eae0-48d3-b4e6-3f8a8a509db1": {
                  "name": "bot",
                  "build": {},
                  "deploy": {},
                  "source": {
                    "repo": "https://github.com/kaxing/simple-telegram-gpt-bot/"
                  },
                  "variables": {
                    "OPENAI_API_KEY": {
                      "isOptional": true,
                      "description": "API key for OpenAI. Will be asking upon starting the bot."
                    },
                    "TELEGRAM_TOKEN": {
                      "isOptional": false,
                      "description": "Bot token is required for initializing the bot.",
                      "defaultValue": "{{TELEGRAM_TOKEN}}"
                    },
                    "NIXPACKS_PYTHON_VERSION": {
                      "isOptional": false,
                      "description": "Specify default Python version for the environment.",
                      "defaultValue": "3.11"
                    },
                    "ENABLE_ALPINE_PRIVATE_NETWORKING": {
                      "isOptional": false,
                      "description": "Due to the script start time too short. We need to apply this workaround: https://docs.railway.app/guides/private-networking#workaround-for-alpine-based-images",
                      "defaultValue": "true"
                    }
                  },
                  "networking": {
                    "tcpProxies": {
                      "443": {}
                    },
                    "serviceDomains": {}
                  },
                  "volumeMounts": {}
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": false
  },
  "generated_at": "2026-09-21T22:14:44.200Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-21T14:47:49.905Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_d0fb0f3eafc44d09aede",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 109,
    "typical_build_seconds": 41,
    "typical_start_seconds": 10,
    "slowest_service": "bot"
  }
}
