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

[Feature Request] Edit Text Message #241

Closed
normalscene opened this issue Dec 12, 2023 · 4 comments
Closed

[Feature Request] Edit Text Message #241

normalscene opened this issue Dec 12, 2023 · 4 comments
Labels
engine:NOWEB engine:WEBJS enhancement New feature or request patron:PLUS waha:CORE Relates to WAHA Core version

Comments

@normalscene
Copy link

normalscene commented Dec 12, 2023

Is your feature request related to a problem? Please describe. I'm always
frustrated when I am not able to edit a text message.

The problem is simple. Sometimes we don't want to delete the sent message but just edit it,
as now whatsapp allows editing of messages.

Describe the solution you'd like

Say I have sent message and it has msgid=1234, i should be able to call api /editMessage(msgid, newtext)
and the already sent message text should change from earlier text to newtext.

Additional context Add any other context or screenshots about the feature
request here.

patron:PLUS

@allburov allburov added patron:PLUS enhancement New feature or request waha:CORE Relates to WAHA Core version labels Dec 12, 2023
@allburov allburov added dependencies Pull requests that update a dependency file and removed dependencies Pull requests that update a dependency file labels Jan 7, 2024
@normalscene
Copy link
Author

Hi @allburov Hope all is well!

When do u see this feature coming to life ?

@normalscene
Copy link
Author

normalscene commented Mar 19, 2024

Hi. Is there any update ?

patron:PLUS

@allburov
Copy link
Contributor

Hi! Sorry for the delay, was busy with other things...
The next thing in the queue, hopefully it'll be available soon 🤞

@devlikepro
Copy link
Contributor

devlikepro commented Mar 24, 2024

Hi!
You can edit and delete messages starting WAHA Plus 2024.3.11! 🎉
Remember to update and restart your containers to use the feature.


Edit message

You can edit text messages or "caption" in media messages.

PUT /api/{session}/chats/{chatId}/messages/{messageId}

👉 Remember to escape @ in chatId and messageId with %40.

So if you want to edit true_123@c.us_AAA message in 123@c.us chat you need to send request to:

PUT /api/{session}/chats/123%40c.us/messages/true_123%40c.us_AAA

Payload:

{
  "text": "Hello, world!"
}

Delete message

You can delete messages from the chat.

DELETE /api/{session}/chats/{chatId}/messages/{messageId}

👉 Remember to escape @ in chatId and messageId with %40.

So if you want to delete true_123@c.us_AAA message in 123@c.us chat you need to send request to:

DELETE /api/{session}/chats/123%40c.us/messages/true_123%40c.us_AAA

patron:PRO

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
engine:NOWEB engine:WEBJS enhancement New feature or request patron:PLUS waha:CORE Relates to WAHA Core version
Projects
None yet
Development

No branches or pull requests

3 participants