fix(dingtalk): improve error message for missing session_webhook (fixes #2265)

This commit is contained in:
曾文锋0668000834 2026-04-07 14:27:33 +08:00
parent 84edc462d6
commit 729ff4356b

View file

@ -112,7 +112,7 @@ func (c *DingTalkChannel) Send(ctx context.Context, msg bus.OutboundMessage) ([]
// Get session webhook from storage
sessionWebhookRaw, ok := c.sessionWebhooks.Load(msg.ChatID)
if !ok {
return nil, fmt.Errorf("no session_webhook found for chat %s, cannot send message", msg.ChatID)
return nil, fmt.Errorf("no session_webhook found for chat %s. Note: DingTalk channel requires an active user conversation to send messages. Proactive/cron messages are not supported", msg.ChatID)
}
sessionWebhook, ok := sessionWebhookRaw.(string)