{
  "manifest_version": "1.0.0",
  "template": {
    "id": "e765fb0f-0fde-4fac-a0e6-b83115883ea4",
    "slug": "telegram-webhook-gateway",
    "name": "Telegram Webhook Gateway",
    "description": "Telegram webhook gateway with durable queue and retry support",
    "url": "https://railway.com/deploy/telegram-webhook-gateway",
    "upstream": {
      "repo_url": "https://github.com/BigDaddyAman/Telegram-Webhook-Gateway"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "Telegram-Webhook",
      "source": {
        "repo": "https://github.com/BigDaddyAman/Telegram-Webhook-Gateway"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "BOT_TOKEN",
      "service": "Telegram-Webhook",
      "description": "Telegram bot token from @BotFather",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "PUBLIC_MODE",
      "service": "Telegram-Webhook",
      "description": "Allow messages from any chat (true / false)",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "SQLITE_PATH",
      "service": "Telegram-Webhook",
      "description": "Path to the SQLite database file used for the queue",
      "secret": false,
      "strategy": "default",
      "default": "./events.db"
    },
    {
      "key": "QUEUE_BACKEND",
      "service": "Telegram-Webhook",
      "description": "Queue backend to use (default: sqlite)",
      "secret": false,
      "strategy": "default",
      "default": "sqlite"
    },
    {
      "key": "OUTBOUND_SECRET",
      "service": "Telegram-Webhook",
      "description": "Optional HMAC secret for signing outgoing webhooks (example: mysecret123)",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "MAX_BODY_SIZE_KB",
      "service": "Telegram-Webhook",
      "description": "Max allowed size of incoming webhook payload (KB)",
      "secret": false,
      "strategy": "default",
      "default": "512"
    },
    {
      "key": "RATE_LIMIT_PER_MIN",
      "service": "Telegram-Webhook",
      "description": "Max messages per chat per minute",
      "secret": false,
      "strategy": "default",
      "default": "30"
    },
    {
      "key": "TARGET_WEBHOOK_URLS",
      "service": "Telegram-Webhook",
      "description": "Comma-separated list of webhook URLs to forward events to",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "TELEGRAM_SECRET_TOKEN",
      "service": "Telegram-Webhook",
      "description": "Secret token to verify Telegram webhook requests (example: supersecret)",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "telegram-webhook-gateway"
      }
    },
    "cli": "railway deploy --template telegram-webhook-gateway",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "e765fb0f-0fde-4fac-a0e6-b83115883ea4",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "01c57bb4-aaa9-44d3-8f04-8a7016c9aa51": {
                  "icon": "https://devicons.railway.app/telegram",
                  "name": "Telegram-Webhook",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/BigDaddyAman/Telegram-Webhook-Gateway",
                    "rootDirectory": null
                  },
                  "variables": {
                    "BOT_TOKEN": {
                      "isOptional": false,
                      "description": "Telegram bot token from @BotFather",
                      "defaultValue": "{{BOT_TOKEN}}"
                    },
                    "PUBLIC_MODE": {
                      "isOptional": false,
                      "description": "Allow messages from any chat (true / false)",
                      "defaultValue": "false"
                    },
                    "SQLITE_PATH": {
                      "isOptional": true,
                      "description": "Path to the SQLite database file used for the queue",
                      "defaultValue": "./events.db"
                    },
                    "QUEUE_BACKEND": {
                      "isOptional": true,
                      "description": "Queue backend to use (default: sqlite)",
                      "defaultValue": "sqlite"
                    },
                    "OUTBOUND_SECRET": {
                      "isOptional": false,
                      "description": "Optional HMAC secret for signing outgoing webhooks (example: mysecret123)",
                      "defaultValue": "{{OUTBOUND_SECRET}}"
                    },
                    "MAX_BODY_SIZE_KB": {
                      "isOptional": true,
                      "description": "Max allowed size of incoming webhook payload (KB)",
                      "defaultValue": "512"
                    },
                    "RATE_LIMIT_PER_MIN": {
                      "isOptional": true,
                      "description": "Max messages per chat per minute",
                      "defaultValue": "30"
                    },
                    "AUTHORIZED_CHAT_IDS": {
                      "isOptional": true,
                      "description": "Comma-separated list of allowed Telegram chat IDs",
                      "defaultValue": ""
                    },
                    "TARGET_WEBHOOK_URLS": {
                      "isOptional": false,
                      "description": "Comma-separated list of webhook URLs to forward events to",
                      "defaultValue": "{{TARGET_WEBHOOK_URLS}}"
                    },
                    "TELEGRAM_SECRET_TOKEN": {
                      "isOptional": false,
                      "description": "Secret token to verify Telegram webhook requests (example: supersecret)",
                      "defaultValue": "{{TELEGRAM_SECRET_TOKEN}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {
                    "01c57bb4-aaa9-44d3-8f04-8a7016c9aa51": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-20T16:14:49.616Z",
  "generator_version": "0.1.0"
}
