{
  "name": "@openclaw/telegram",
  "version": "2026.11.8",
  "private": true,
  "description": "OpenClaw Telegram channel plugin",
  "type": "module",
  "dependencies": {
    "@grammyjs/transformer-throttler": "1.2.1",
    "abort-controller": "3.0.0",
    "grammy": "1.46.0",
    "quickjs-wasi": "3.6.3",
    "typebox": "1.4.2",
    "undici": "8.12.3",
    "zod": "4.6.7"
  },
  "devDependencies": {
    "@openclaw/plugin-sdk": "workspace:*",
    "openclaw": "workspace:*"
  },
  "peerDependencies": {
    "openclaw": ">=2026.11.8"
  },
  "peerDependenciesMeta": {
    "openclaw": {
      "optional": true
    }
  },
  "openclaw": {
    "compat": {
      "pluginApi": ">=2026.11.8"
    },
    "extensions": [
      "./index.js"
    ],
    "setupEntry": "./setup-entry.js",
    "build": {
      "workerEntries": [
        "./src/telegram-ingress-worker.runtime.ts",
        "./src/widgets/widget-check.worker.ts"
      ],
      "staticAssets": [
        {
          "source": "./node_modules/quickjs-wasi/quickjs.wasm",
          "output": "assets/quickjs.wasm"
        }
      ]
    },
    "setupFeatures": {
      "configPromotion": true
    },
    "channel": {
      "id": "telegram",
      "configuredState": {
        "env": {
          "anyOf": [
            "TELEGRAM_BOT_TOKEN"
          ]
        }
      },
      "approvalFlags": [
        "native"
      ],
      "label": "Telegram",
      "selectionLabel": "Telegram (Bot API)",
      "detailLabel": "Telegram Bot",
      "docsPath": "/channels/telegram",
      "docsLabel": "telegram",
      "blurb": "simplest way to get started — register a bot with @BotFather and get going.",
      "systemImage": "paperplane",
      "selectionDocsPrefix": "",
      "selectionDocsOmitLabel": true,
      "selectionExtras": [
        "https://openclaw.ai"
      ],
      "markdownCapable": true,
      "doctorCapabilities": {
        "dmAllowFromMode": "topOnly",
        "groupModel": "sender",
        "groupAllowFromFallbackToAllowFrom": true,
        "warnOnEmptyGroupSenderAllowlist": true
      },
      "setup": {
        "fields": [
          {
            "key": "token",
            "kind": "string",
            "sensitive": true,
            "cli": {
              "flags": "--token <token>",
              "description": "Telegram bot token"
            }
          },
          {
            "key": "tokenFile",
            "kind": "string",
            "sensitive": true,
            "cli": {
              "flags": "--token-file <path>",
              "description": "Telegram bot token file"
            }
          },
          {
            "key": "useEnv",
            "kind": "boolean",
            "cli": {
              "flags": "--use-env",
              "description": "Use TELEGRAM_BOT_TOKEN"
            },
            "envVars": [
              "TELEGRAM_BOT_TOKEN"
            ]
          }
        ]
      },
      "commands": {
        "nativeCommandsAutoEnabled": true,
        "nativeSkillsAutoEnabled": true
      }
    }
  }
}
