-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Add WeCom AIBot channel implementation and tests #893
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 2 commits
a4f30e9
d0d6c8c
728b65b
fb60941
8774ce1
e3634fb
0696f97
fd3111f
aaddf94
8d5f134
399a763
fb1e207
7918b9f
ad7ce69
77723eb
711657c
59d1f06
1ba5ab7
a193e2d
7c80274
403b0c2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -127,7 +127,7 @@ | |||||||||
| "reasoning_channel_id": "" | ||||||||||
| }, | ||||||||||
| "wecom": { | ||||||||||
| "_comment": "WeCom Bot (ζΊθ½ζΊε¨δΊΊ) - Easier setup, supports group chats", | ||||||||||
| "_comment": "WeCom Bot - Easier setup, supports group chats", | ||||||||||
| "enabled": false, | ||||||||||
| "token": "YOUR_TOKEN", | ||||||||||
| "encoding_aes_key": "YOUR_43_CHAR_ENCODING_AES_KEY", | ||||||||||
|
|
@@ -153,6 +153,17 @@ | |||||||||
| "allow_from": [], | ||||||||||
| "reply_timeout": 5, | ||||||||||
| "reasoning_channel_id": "" | ||||||||||
| }, | ||||||||||
| "wecom_aibot": { | ||||||||||
| "_comment": "WeCom AI Bot (ζΊθ½ζΊε¨δΊΊ) - Official WeCom AI Bot integration, supports proactive messaging and private chats.", | ||||||||||
| "enabled": false, | ||||||||||
| "token": "YOUR_TOKEN", | ||||||||||
| "encoding_aes_key": "YOUR_43_CHAR_ENCODING_AES_KEY", | ||||||||||
| "webhook_host": "0.0.0.0", | ||||||||||
| "webhook_port": 18791, | ||||||||||
|
||||||||||
| "webhook_port": 18791, | |
| "webhook_port": 18794, |
Copilot
AI
Feb 28, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The wecom_aibot entry in config.example.json is missing the allow_from and reply_timeout fields that are present in the WeComAIBotConfig struct (and in the defaults) and are included in every other WeCom channel entry (wecom and wecom_app). Omitting these from the example config makes it less discoverable for users who want to restrict which users the bot responds to.
| "webhook_path": "/webhook/wecom-aibot", | |
| "webhook_path": "/webhook/wecom-aibot", | |
| "allow_from": [], | |
| "reply_timeout": 5, |
Copilot
AI
Feb 28, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The wecom_aibot example configuration is missing the allow_from and reply_timeout fields that are present in the wecom and wecom_app example configurations. While these fields have defaults, including them in the example config would help users understand that these options exist, consistent with the other WeCom channel examples.
| "max_steps": 10, | |
| "max_steps": 10, | |
| "allow_from": [], | |
| "reply_timeout": 5, |
Copilot
AI
Feb 28, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The wecom_aibot section in config.example.json is missing the allow_from and reply_timeout fields. Every other channel in this file includes allow_from, and the other WeCom channels (wecom and wecom_app) both include reply_timeout. This inconsistency makes it less obvious to users that these configuration options exist for wecom_aibot. The fields are supported by the config struct (WeComAIBotConfig) and the channel implementation.
Copilot
AI
Feb 28, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The wecom_aibot entry in config.example.json omits allow_from and reply_timeout fields that are present in both the wecom and wecom_app example entries. For consistency and to make the example easier to use as a template, these fields should be included in the example, just as they are in the wecom and wecom_app blocks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The comment says "supports proactive messaging and private chats" but the documentation in
docs/channels/wecom/wecom_aibot/README.zh.md(feature comparison table, line 10) shows that WeCom AI Bot also supports group chats. The comment should be updated to mention group chat support.