Mention chat not show in group #676
Unanswered
anggatinggalklik
asked this question in
WhatsApp protocol Q&A
Replies: 2 comments
-
Use discussion tab for protocol question. |
Beta Was this translation helpful? Give feedback.
0 replies
-
I have been tested your code and working as expected. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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
Beta Was this translation helpful? Give feedback.
All reactions