apiVersion: v1 kind: MessagePlatformAdapter metadata: name: lark label: en_US: Lark zh_Hans: 飞书 description: en_US: Lark Adapter zh_Hans: 飞书适配器,请查看文档了解使用方式 icon: lark.svg spec: config: - name: app_id label: en_US: App ID zh_Hans: 应用ID type: string required: true default: "" - name: app_secret label: en_US: App Secret zh_Hans: 应用密钥 type: string required: true default: "" - name: bot_name label: en_US: Bot Name zh_Hans: 机器人名称 description: en_US: Must be the same as the name of the bot in Lark, otherwise the bot will not be able to receive messages in the group zh_Hans: 必须与飞书机器人名称一致,否则机器人将无法在群内正常接收消息 type: string required: true default: "" - name: enable-webhook label: en_US: Enable Webhook Mode zh_Hans: 启用Webhook模式 description: en_US: If enabled, the bot will use webhook mode to receive messages. Otherwise, it will use WS long connection mode zh_Hans: 如果启用,机器人将使用 Webhook 模式接收消息。否则,将使用 WS 长连接模式 type: boolean required: true default: false - name: port label: en_US: Webhook Port zh_Hans: Webhook端口 description: en_US: Only valid when webhook mode is enabled, please fill in the webhook port zh_Hans: 仅在启用 Webhook 模式时有效,请填写 Webhook 端口 type: integer required: true default: 2285 - name: encrypt-key label: en_US: Encrypt Key zh_Hans: 加密密钥 description: en_US: Only valid when webhook mode is enabled, please fill in the encrypt key zh_Hans: 仅在启用 Webhook 模式时有效,请填写加密密钥 type: string required: true default: "" - name: enable-stream-reply label: en_US: Enable Stream Reply Mode zh_Hans: 启用飞书流式回复模式 description: en_US: If enabled, the bot will use the stream of lark reply mode zh_Hans: 如果启用,将使用飞书流式方式来回复内容 type: boolean required: true default: false execution: python: path: ./lark.py attr: LarkAdapter