{"record":{"id":"9ecaa4e22bed5b4a","repo":"sipeed/picoclaw","slug":"ambiguous-recipient-q-matches-s-w","errorCode":null,"errorMessage":"ambiguous recipient %q matches %s: %w","messagePattern":"ambiguous recipient %q matches (.+?): %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pkg/channels/deltachat/deltachat.go","lineNumber":860,"sourceCode":"\t\t}\n\t}\n\treturn matches\n}\n\nfunc (c *DeltaChatChannel) getFullChatByContext(ctx context.Context, chatID int64) (*dcChat, error) {\n\traw, err := c.rpc.call(ctx, \"get_full_chat_by_id\", c.accountID, chatID)\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"get chat %d: %w\", chatID, err)\n\t}\n\tvar chat dcChat\n\tif err := json.Unmarshal(raw, &chat); err != nil {\n\t\treturn nil, fmt.Errorf(\"get chat %d decode: %w\", chatID, err)\n\t}\n\treturn &chat, nil\n}\n\nfunc ambiguousRecipientError(target string, labels []string) error {\n\treturn fmt.Errorf(\n\t\t\"ambiguous recipient %q matches %s: %w\",\n\t\ttarget,\n\t\tstrings.Join(labels, \", \"),\n\t\tchannels.ErrSendFailed,\n\t)\n}\n\nfunc contactRecipientLabels(contacts []dcContact) []string {\n\tlabels := make([]string, 0, len(contacts))\n\tfor _, contact := range contacts {\n\t\tname := strings.TrimSpace(contact.DisplayName)\n\t\tif name == \"\" {\n\t\t\tname = strings.TrimSpace(contact.Name)\n\t\t}\n\t\tif name != \"\" && contact.Address != \"\" {\n\t\t\tlabels = append(labels, fmt.Sprintf(\"%s <%s>\", name, contact.Address))\n\t\t} else if contact.Address != \"\" {\n\t\t\tlabels = append(labels, contact.Address)","sourceCodeStart":842,"sourceCodeEnd":878,"githubUrl":"https://github.com/sipeed/picoclaw/blob/49183d7e8daed0dba89ddbb6fcb60089401d9680/pkg/channels/deltachat/deltachat.go#L842-L878","documentation":"Error \"ambiguous recipient %q matches %s: %w\" thrown in sipeed/picoclaw.","triggerScenarios":"Thrown at pkg/channels/deltachat/deltachat.go:860 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"49183d7e8daed0dba89ddbb6fcb60089401d9680","analyzedAt":"2026-08-15T21:55:41.315Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}