tulir / whatsmeow

Go library for the WhatsApp web multidevice API
https://go.mau.fi/whatsmeow
Mozilla Public License 2.0
2.29k stars 429 forks source link

Mention chat not show in group #675

Closed anggatinggalklik closed 1 month ago

anggatinggalklik commented 1 month ago

i have implement mention chat group like this pattern :=@62\d{9,12}` re := regexp.MustCompile(pattern) matches := re.FindAllString(msg.Body, -1) if matches != nil { var mentionedJID []string for _, match := range matches { mentionedJID = append(mentionedJID, types.NewJID(strings.Replace(match, "@", "", 1), types.DefaultUserServer).ToNonAD().String()) }

        if mentionedJID != nil {
            payload.ExtendedTextMessage = &waE2E.ExtendedTextMessage{
                Text: proto.String(msg.Body),
                ContextInfo: &waE2E.ContextInfo{
                    MentionedJID: mentionedJID,
                },
            }
        }
    }`

no error in log but chat isnt show in group conversation

SoursopID commented 1 month ago

Use discussion tab for protocol question.