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())
}
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()) }no error in log but chat isnt show in group conversation