mirror of
https://github.com/qwibitai/nanoclaw.git
synced 2026-06-24 18:31:31 +08:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 3f1319273b |
@@ -571,6 +571,13 @@ registerChannelAdapter('whatsapp', {
|
||||
const inbound: InboundMessage = {
|
||||
id: msg.key.id || `wa-${Date.now()}`,
|
||||
kind: 'chat',
|
||||
// DMs are addressed to the bot by definition. Mark them as
|
||||
// platform-confirmed mentions so the router treats them like
|
||||
// chat-sdk-bridge's onDirectMessage path — auto-creating an
|
||||
// approval-required messaging_group when the chat is unknown,
|
||||
// instead of silently dropping at router.ts:184.
|
||||
isMention: !isGroup ? true : undefined,
|
||||
isGroup,
|
||||
content: {
|
||||
text: content,
|
||||
sender,
|
||||
|
||||
Reference in New Issue
Block a user