Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I delete a message for me? #633

Open
flykby opened this issue Aug 7, 2024 · 5 comments
Open

How can I delete a message for me? #633

flykby opened this issue Aug 7, 2024 · 5 comments

Comments

@flykby
Copy link

flykby commented Aug 7, 2024

I am writing a system for filtering messages. I need the messages that are in the list of "Stop words" to be blocked. I tried using the SendMessage(BuildRevoke()) and RevokeMessage() methods. but they only delete messages sent by me

@evtuhovdo
Copy link

same problem

@ozan-fn
Copy link

ozan-fn commented Aug 21, 2024

resp, _ := client.SendMessage(context.Background(), v.Info.Chat, client.BuildPollCreation("meow?", []string{"yes", "no"}, 1))
client.SendMessage(context.Background(), v.Info.Chat, client.BuildRevoke(v.Info.Chat, types.EmptyJID, resp.ID))

its work ya ges yaaaa

@tulir
Copy link
Owner

tulir commented Aug 22, 2024

Delete for me is an app state event, so it can be sent using https://pkg.go.dev/go.mau.fi/whatsmeow#Client.SendAppState

Feel free to make PR for adding a BuildDeleteForMe helper in https://github.com/tulir/whatsmeow/blob/main/appstate/encode.go

@xiaohuwei
Copy link

xiaohuwei commented Aug 26, 2024

Delete for me is an app state event, so it can be sent using https://pkg.go.dev/go.mau.fi/whatsmeow#Client.SendAppState

Feel free to make PR for adding a BuildDeleteForMe helper in https://github.com/tulir/whatsmeow/blob/main/appstate/encode.go

Who can help me achieve it? Thank you so much. 🥺

@tulir

@marcos-travasso
Copy link

Delete for me is an app state event, so it can be sent using https://pkg.go.dev/go.mau.fi/whatsmeow#Client.SendAppState
Feel free to make PR for adding a BuildDeleteForMe helper in https://github.com/tulir/whatsmeow/blob/main/appstate/encode.go

Who can help me achieve it? Thank you so much. 🥺

@tulir

I made the helper, waiting for approval on my PR #702

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants