{
  "name": "telegram-send",
  "title": "Send a Telegram message",
  "category": "Notifications",
  "tags": [
    "curl",
    "notifications"
  ],
  "version": "1.0.1",
  "date": "2026-08-02",
  "notes": "Move curlimages/curl from 8.11.1 to 8.21.0. Fixable CRITICAL/HIGH drops from 26 to 1.",
  "latest": true,
  "installable": true,
  "url": "https://catalog.dagweave.com/api/v1/items/telegram-send/1.0.1.json",
  "templateUrl": "https://catalog.dagweave.com/api/v1/items/telegram-send/1.0.1/template.yaml",
  "entrypoint": "send",
  "parameters": [
    {
      "name": "chat-id",
      "title": "Chat ID",
      "description": "Target chat: a numeric chat ID or an @channelusername.",
      "type": "string",
      "required": true,
      "example": "123456789"
    },
    {
      "name": "text",
      "title": "Text",
      "description": "The message text to send.",
      "type": "string",
      "required": true
    },
    {
      "name": "bot-token-secret-key",
      "title": "Bot token secret key",
      "description": "Key within the Secret that holds the bot token.",
      "type": "string",
      "required": false,
      "default": "token"
    },
    {
      "name": "bot-token-secret-name",
      "title": "Bot token secret name",
      "description": "Name of the Kubernetes Secret in the run namespace holding the Telegram bot token.",
      "type": "string",
      "required": false,
      "default": "telegram-bot-token"
    }
  ],
  "images": [
    {
      "ref": "curlimages/curl@sha256:3fb7e13e5d179a845c97d78204f3f1064d1907037f26a3ebf91710571151fd93",
      "repository": "curlimages/curl",
      "tag": "8.23.0",
      "digest": "sha256:3fb7e13e5d179a845c97d78204f3f1064d1907037f26a3ebf91710571151fd93"
    }
  ],
  "install": {
    "kubectl": "kubectl apply -n argo -f https://catalog.dagweave.com/api/v1/items/telegram-send/1.0.1/template.yaml",
    "argo": "argo template create -n argo https://catalog.dagweave.com/api/v1/items/telegram-send/1.0.1/template.yaml"
  },
  "template": "apiVersion: argoproj.io/v1alpha1\nkind: WorkflowTemplate\nmetadata:\n  name: telegram-send\n  labels:\n    dagweave.io/catalog-item: telegram-send\n  annotations:\n    # The catalog semver this manifest was authored at. The dagweave app records\n    # (catalog-item-id, semver) -\u003e content-hash -\u003e base-vN when it mints the tenant\n    # cluster name via ResolveOrMint. Keep in sync with metadata.yaml `version`.\n    dagweave.io/catalog-version: \"1.0.1\"\n    dagweave.io/catalog-category: \"Notifications\"\nspec:\n  entrypoint: send\n  templates:\n    - name: send\n      inputs:\n        parameters:\n          # Target chat: a numeric chat ID or an @channelusername.\n          - name: chat-id\n          # The message text to send.\n          - name: text\n          # Name/key of the Kubernetes Secret in the run namespace holding the\n          # Telegram bot token. Defaults let a user leave them blank in the Inspector.\n          - name: bot-token-secret-name\n            default: telegram-bot-token\n          - name: bot-token-secret-key\n            default: token\n      container:\n        # Pinned by digest per the catalog convention: an image rebuild can never\n        # silently change the behaviour of an already-released item version.\n        # curlimages/curl:8.23.0\n        image: curlimages/curl@sha256:3fb7e13e5d179a845c97d78204f3f1064d1907037f26a3ebf91710571151fd93\n        command: [sh, -c]\n        # Values are passed as env vars (below), never interpolated into the shell,\n        # so a text containing quotes or shell metacharacters is safe. The Telegram\n        # Bot API accepts form-encoded params, and --data-urlencode escapes them, so\n        # no jq / JSON assembly is needed. The bot token is expanded only as a single\n        # URL argument (never re-parsed by the shell).\n        args:\n          - |\n            set -eu\n            curl -sSf -X POST \"https://api.telegram.org/bot${BOT_TOKEN}/sendMessage\" \\\n              --data-urlencode \"chat_id=${CHAT_ID}\" \\\n              --data-urlencode \"text=${TEXT}\"\n        env:\n          - name: CHAT_ID\n            value: \"{{inputs.parameters.chat-id}}\"\n          - name: TEXT\n            value: \"{{inputs.parameters.text}}\"\n          - name: BOT_TOKEN\n            valueFrom:\n              secretKeyRef:\n                name: \"{{inputs.parameters.bot-token-secret-name}}\"\n                key: \"{{inputs.parameters.bot-token-secret-key}}\"\n",
  "templateSha256": "401256c6fcbecdc1daec3e73bb51e28010a0af47941d8e0022ebf9b18a709df4",
  "source": "https://github.com/dagweave/catalog/tree/67458f74dbbf913b03177f3cefc69424be85eb1d/catalog/telegram-send",
  "catalogSha": "67458f74dbbf913b03177f3cefc69424be85eb1d"
}
