{
  "name": "@openclaw/telegram",
  "version": "2026.9.2",
  "private": true,
  "description": "OpenClaw Telegram channel plugin",
  "type": "module",
  "dependencies": {
    "@grammyjs/runner": "2.0.3",
    "@grammyjs/transformer-throttler": "1.2.1",
    "grammy": "1.46.0",
    "typebox": "1.3.18",
    "undici": "8.10.2",
    "zod": "4.4.3"
  },
  "devDependencies": {
    "@openclaw/plugin-sdk": "workspace:*"
  },
  "openclaw": {
    "extensions": [
      "./index.js"
    ],
    "setupEntry": "./setup-entry.js",
    "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,
      "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
      }
    }
  }
}
