Skip to content

feat(dingtalk): add support for group chat messages#1467

Merged
Re-bin merged 3 commits intoHKUDS:mainfrom
shawnWXN:feat/dingtalk_group
Mar 7, 2026
Merged

feat(dingtalk): add support for group chat messages#1467
Re-bin merged 3 commits intoHKUDS:mainfrom
shawnWXN:feat/dingtalk_group

Conversation

@shawnWXN
Copy link
Copy Markdown
Contributor

@shawnWXN shawnWXN commented Mar 3, 2026

Summary

  • Add support for DingTalk group chat messages, enabling the bot to receive and respond in group conversations
  • Automatically detect message type (group vs private) based on conversationType field
  • Use appropriate API endpoints for each message type:
    • Group chat: /v1.0/robot/groupMessages/send
    • Private chat: /v1.0/robot/oToMessages/batchSend
  • Group chat replies now mention the original sender for better context. But in reality, there is no @ effect; it's just text. DingTalk's official documentation has interface explanations.
image

https://open.dingtalk.com/document/development/the-robot-sends-a-group-message

image

Changes

  • Receive: Detect conversationType from incoming messages and prefix group chat IDs with group: for routing
  • Send: Route messages to the correct DingTalk API based on the group: prefix in chat_id
  • Mention: Automatically append @{sender_name} in group chat responses

Resolves #1045

@shawnWXN shawnWXN force-pushed the feat/dingtalk_group branch from 47a7a51 to 7399177 Compare March 7, 2026 16:01
@Re-bin Re-bin merged commit 7399177 into HKUDS:main Mar 7, 2026
Mazahir26 added a commit to Mazahir26/nanobot that referenced this pull request Mar 8, 2026
Upstream changes integrated:
- PR HKUDS#1635: Agent config/workspace CLI support
- PR HKUDS#1677: Fix auth allowlist bypass via sender_id token splitting
- PR HKUDS#1467: DingTalk group chat support
- PR HKUDS#436: Preserve Telegram document extension
- PR HKUDS#1482: Telegram topic support
- PR HKUDS#1535: Fix Telegram proxy crash
- PR HKUDS#332: Feishu event handlers
- Azure OpenAI provider support
- Multi-instance path cleanup and workspace override preservation
- Slack empty text response handling
- QQ group @message support

Conflicts resolved:
- .gitignore: Preserved user's tests/ and QWEN.md entries
- nanobot/agent/tools/mcp.py: Merged upstream's SSE transport support with user's dict compatibility for backward compatibility

Tests: 169 passed

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
robottwo pushed a commit to robottwo/nanobot that referenced this pull request Mar 13, 2026
sorker pushed a commit to sorker/nanobot that referenced this pull request Mar 24, 2026
Wattysaid pushed a commit to kieran-assistant/nanobot that referenced this pull request Apr 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] DingTalk group chat

2 participants