feat(im): add WeChat integration with QR code login and long-polling support

- Extended the IMChannel interface to include WeChat as a platform, supporting long-polling mode and full output mode.
- Implemented WeChat QR code login functionality, allowing users to authenticate via a QR code.
- Added new API endpoints for generating and polling the status of WeChat QR codes.
- Updated the frontend to handle WeChat-specific UI elements and interactions, including dynamic form adjustments based on the selected platform.
- Enhanced localization files to include WeChat-related translations.
- Introduced a WeChat adapter for message handling and file downloading via the iLink Bot API.
This commit is contained in:
wizardchen
2026-03-23 18:27:21 +08:00
committed by lyingbug
parent 45ad36845e
commit d1c7da97f9
16 changed files with 1424 additions and 65 deletions
+10 -1
View File
@@ -3314,12 +3314,14 @@ export default {
},
im: {
title: 'IM Integration',
description: 'Connect agent to instant messaging platforms like WeCom, Feishu, Slack, Telegram, DingTalk, and Mattermost',
description: 'Connect agent to instant messaging platforms like WeCom, Feishu, Slack, Telegram, DingTalk, Mattermost and WeChat',
feishu: 'Feishu',
slack: 'Slack',
telegram: 'Telegram',
dingtalk: 'DingTalk',
mattermost: 'Mattermost',
wecom: 'WeCom',
wechat: 'WeChat',
addChannel: 'Add Channel',
editChannel: 'Edit Channel',
deleteConfirm: 'Are you sure you want to delete this channel? This action cannot be undone.',
@@ -3354,6 +3356,13 @@ export default {
sessionModeUser: 'Per User (default)',
sessionModeThread: 'Per Thread',
sessionModeHint: 'User mode: each person has their own conversation. Use /clear to start fresh. Thread mode: each message thread is a separate conversation. Multiple people can collaborate in the same thread.',
wechatScanBind: 'Scan to bind WeChat',
wechatScanning: 'Scan the QR code with WeChat',
wechatBindSuccess: 'WeChat bound successfully',
wechatRebind: 'Rebind',
wechatHint: 'Requires iOS WeChat 8.0.70+, direct messages only',
wechatQRExpired: 'QR code expired, please try again',
wechatBinding: 'Binding...',
},
mcp: {
label: 'MCP Services',