fix(dingtalk): improve error message for missing session_webhook (fixes #2265)
This commit is contained in:
parent
84edc462d6
commit
729ff4356b
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue