{
  "manifest_version": "1.0.0",
  "template": {
    "id": "64c911ca-d715-4bb7-9f3b-068b17693396",
    "slug": "7cnESs",
    "name": "telegram-bot",
    "description": "Build modern Telegram bots quickly with TypeScript and Telegraf",
    "url": "https://railway.com/deploy/7cnESs",
    "upstream": {
      "repo_url": "https://github.com/agoenks29D/Telegram-Bot"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "Telegram Bot",
      "source": {
        "repo": "https://github.com/agoenks29D/Telegram-Bot"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "Redis",
      "source": {
        "image": "bitnami/redis:7.2.5"
      },
      "needs_volume": true,
      "volume_mount_path": "/bitnami",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "TZ",
      "service": "Telegram Bot",
      "description": "Timezone setting for the application environment. UTC ensures consistency across deployments.",
      "secret": false,
      "strategy": "default",
      "default": "UTC"
    },
    {
      "key": "PORT",
      "service": "Telegram Bot",
      "description": "Port number on which the server will listen. Default is 3000.",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    },
    {
      "key": "NODE_ENV",
      "service": "Telegram Bot",
      "description": "Defines the environment mode. Typically set to development, production, or test.",
      "secret": false,
      "strategy": "default",
      "default": "production"
    },
    {
      "key": "BOT_STORE",
      "service": "Telegram Bot",
      "description": "Session storage backend. Set to redis to use Redis for session persistence.",
      "secret": false,
      "strategy": "default",
      "default": "redis"
    },
    {
      "key": "BOT_TOKEN",
      "service": "Telegram Bot",
      "description": "Telegram bot token obtained from BotFather. Keep this secret!",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "REDIS_URL",
      "service": "Telegram Bot",
      "description": "Connection string for Redis instance. Format: redis://<host>:<port>.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "BOT_WEBHOOK_PATH",
      "service": "Telegram Bot",
      "description": "URL path that Telegram will send updates to. Usually set to /.",
      "secret": false,
      "strategy": "default",
      "default": "/"
    },
    {
      "key": "BOT_WEBHOOK_DOMAIN",
      "service": "Telegram Bot",
      "description": "Publicly accessible HTTPS URL to receive webhook updates.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "BOT_WEBHOOK_ENABLE",
      "service": "Telegram Bot",
      "description": "Set to true to enable webhook mode (instead of long polling).",
      "secret": false,
      "strategy": "default",
      "default": "true"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "7cnESs"
      }
    },
    "cli": "railway deploy --template 7cnESs",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "64c911ca-d715-4bb7-9f3b-068b17693396",
            "serializedConfig": {
              "services": {
                "51ffdbdc-3674-4d6b-9490-271f97b8331d": {
                  "icon": null,
                  "name": "Telegram Bot",
                  "deploy": {
                    "startCommand": "npm start",
                    "healthcheckPath": null,
                    "preDeployCommand": "npm run build"
                  },
                  "source": {
                    "repo": "agoenks29D/Telegram-Bot",
                    "branch": "example",
                    "rootDirectory": null
                  },
                  "variables": {
                    "TZ": {
                      "isOptional": false,
                      "description": "Timezone setting for the application environment. UTC ensures consistency across deployments.",
                      "defaultValue": "UTC"
                    },
                    "PORT": {
                      "isOptional": true,
                      "description": "Port number on which the server will listen. Default is 3000.",
                      "defaultValue": "3000"
                    },
                    "NODE_ENV": {
                      "isOptional": false,
                      "description": "Defines the environment mode. Typically set to development, production, or test.",
                      "defaultValue": "production"
                    },
                    "BOT_STORE": {
                      "isOptional": false,
                      "description": "Session storage backend. Set to redis to use Redis for session persistence.",
                      "defaultValue": "redis"
                    },
                    "BOT_TOKEN": {
                      "isOptional": false,
                      "description": "Telegram bot token obtained from BotFather. Keep this secret!",
                      "defaultValue": "{{BOT_TOKEN}}"
                    },
                    "REDIS_URL": {
                      "isOptional": false,
                      "description": "Connection string for Redis instance. Format: redis://<host>:<port>.",
                      "defaultValue": "${{Redis.REDIS_URL}}"
                    },
                    "BOT_WEBHOOK_PATH": {
                      "isOptional": false,
                      "description": "URL path that Telegram will send updates to. Usually set to /.",
                      "defaultValue": "/"
                    },
                    "BOT_WEBHOOK_DOMAIN": {
                      "description": "Publicly accessible HTTPS URL to receive webhook updates.",
                      "defaultValue": "${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "BOT_WEBHOOK_ENABLE": {
                      "isOptional": false,
                      "description": "Set to true to enable webhook mode (instead of long polling).",
                      "defaultValue": "true"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  }
                },
                "a7359caa-dfed-4c37-8a5c-a2567feeab0f": {
                  "icon": "https://devicons.railway.app/i/redis.svg",
                  "name": "Redis",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null
                  },
                  "source": {
                    "image": "bitnami/redis:7.2.5"
                  },
                  "variables": {},
                  "volumeMounts": {
                    "a7359caa-dfed-4c37-8a5c-a2567feeab0f": {
                      "mountPath": "/bitnami"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-08T05:54:19.399Z",
  "generator_version": "0.1.0"
}
