Files
openclaw/extensions/telegram/package.json

80 lines
2.0 KiB
JSON

{
"name": "@openclaw/telegram",
"version": "2026.7.2",
"private": true,
"description": "OpenClaw Telegram channel plugin",
"type": "module",
"dependencies": {
"@grammyjs/runner": "2.0.3",
"@grammyjs/transformer-throttler": "1.2.1",
"grammy": "1.45.1",
"typebox": "1.3.6",
"undici": "8.9.0",
"zod": "4.4.3"
},
"devDependencies": {
"@openclaw/plugin-sdk": "workspace:*"
},
"openclaw": {
"extensions": [
"./index.ts"
],
"setupEntry": "./setup-entry.ts",
"setupFeatures": {
"configPromotion": true,
"legacyStateMigrations": 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" }
}
]
},
"commands": {
"nativeCommandsAutoEnabled": true,
"nativeSkillsAutoEnabled": true
}
}
}
}